Skip to content

Commit 66a5807

Browse files
committed
Expose get_argument_values as public API
Replicates graphql/graphql-js@d925576
1 parent e893287 commit 66a5807

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

docs/modules/execution.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ Execution
3333
.. autoclass:: MiddlewareManager
3434

3535
.. autofunction:: get_directive_values
36+
37+
.. autofunction:: get_variable_values

src/graphql/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@
426426
default_field_resolver,
427427
default_type_resolver,
428428
get_directive_values,
429+
get_variable_values,
429430
# Types
430431
ExecutionContext,
431432
ExecutionResult,
@@ -682,6 +683,7 @@
682683
"default_field_resolver",
683684
"default_type_resolver",
684685
"get_directive_values",
686+
"get_variable_values",
685687
"ExecutionContext",
686688
"ExecutionResult",
687689
"FormattedExecutionResult",

src/graphql/execution/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .map_async_iterator import MapAsyncIterator
1818
from .subscribe import subscribe, create_source_event_stream
1919
from .middleware import MiddlewareManager
20-
from .values import get_directive_values
20+
from .values import get_directive_values, get_variable_values
2121

2222
__all__ = [
2323
"create_source_event_stream",
@@ -33,4 +33,5 @@
3333
"Middleware",
3434
"MiddlewareManager",
3535
"get_directive_values",
36+
"get_variable_values",
3637
]

src/graphql/execution/values.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ def get_variable_values(
4747
Prepares a dict of variable values of the correct type based on the provided
4848
variable definitions and arbitrary input. If the input cannot be parsed to match
4949
the variable definitions, a GraphQLError will be raised.
50-
51-
For internal use only.
5250
"""
5351
errors: List[GraphQLError] = []
5452

0 commit comments

Comments
 (0)