pub fn from_graphql_parser_query_ast(
doc: &Document<'static, String>,
) -> Document<'static>Expand description
Convert a graphql_parser query Document to a
libgraphql AST Document.
This is the reverse of
to_graphql_parser_query_ast. The conversion is
lossy in the same ways as
from_graphql_parser_schema_ast.
graphql_parser does not support directives on
VariableDefinition, so the resulting
VariableDefinition.directives will always be
empty.
Byte offsets are 0. Use
from_graphql_parser_query_ast_with_source for
accurate byte offsets.