Skip to content

Commit df94c8f

Browse files
committed
Mention operation_name in docstring
1 parent 022308c commit df94c8f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gql/transport/requests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ def execute(
8585
8686
:param document: GraphQL query as AST Node object.
8787
:param variable_values: Dictionary of input parameters (Default: None).
88+
:param operation_name: Name of the operation that shall be executed.
89+
Only required in multi-operation documents (Default: None).
8890
:param timeout: Specifies a default timeout for requests (Default: None).
89-
:return: The result of execution. `data` is the result of executing the query, `errors` is null if no errors
90-
occurred, and is a non-empty array if an error occurred.
91+
:return: The result of execution. `data` is the result of executing the query,
92+
`errors` is null if no errors occurred, and is a non-empty array if an error occurred.
9193
"""
9294
query_str = print_ast(document)
9395
payload = {"query": query_str} # type: Dict

0 commit comments

Comments
 (0)