We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 518e243 commit a46477dCopy full SHA for a46477d
src/graphql/utilities/ast_from_value.py
@@ -34,7 +34,12 @@
34
35
36
def ast_from_value(value: Any, type_: GraphQLInputType) -> Optional[ValueNode]:
37
- """Produce a GraphQL Value AST given a Python value.
+ """Produce a GraphQL Value AST given a Python object.
38
+
39
+ This function will match Python/JSON values to GraphQL AST schema format by using
40
+ the suggested GraphQLInputType. For example::
41
42
+ ast_from_value('value', GraphQLString)
43
44
A GraphQL type must be provided, which will be used to interpret different Python
45
values.
0 commit comments