Skip to content

Commit bad6f5a

Browse files
committed
fix typo in docs/execution
1 parent 8cae7bd commit bad6f5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/execution/execute.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ For executing a query a schema, you can directly call the ``execute`` method on
66

77

88
.. code:: python
9-
9+
1010
schema = graphene.Schema(...)
1111
result = schema.execute('{ name }')
1212
13-
``result`` represents he result of execution. ``result.data`` is the result of executing the query, ``result.errors`` is ``None`` if no errors occurred, and is a non-empty list if an error occurred.
13+
``result`` represents the result of execution. ``result.data`` is the result of executing the query, ``result.errors`` is ``None`` if no errors occurred, and is a non-empty list if an error occurred.
1414

1515

1616
Context
@@ -26,7 +26,7 @@ You can pass context to a query via ``context_value``.
2626
2727
def resolve_name(self, args, context, info):
2828
return context.get('name')
29-
29+
3030
schema = graphene.Schema(Query)
3131
result = schema.execute('{ name }', context_value={'name': 'Syrus'})
3232

0 commit comments

Comments
 (0)