generator/graphql_helpers library

Functions

buildTypeName(Node node, GeneratorOptions options, {bool dartType = true, Name? replaceLeafWith, required TypeDefinitionNodeVisitor typeDefinitionNodeVisitor}) TypeName
Build a string representing a Dart type, given a GraphQL type.
getSingleScalarMap(GeneratorOptions options, String type, {bool throwOnNotFound = true}) ScalarMap?
Retrieve a scalar mapping of a type.
getTypeByName(TypeDefinitionNodeVisitor typeDefinitionNodeVisitor, TypeNode typeNode) → TypeDefinitionNode
Get a full TypeDefinitionNode from a type node.
importsOfScalar(GeneratorOptions options, String type) Iterable<String>
Retrieve imports of a scalar map.