QueryDefinition class

Define a GraphQL query and its dependencies.

Inheritance
Mixed-in types

Constructors

QueryDefinition({required Name name, required String operationName, DocumentNode document = const DocumentNode(), Iterable<Definition> classes = const [], Iterable<QueryInput> inputs = const [], bool generateHelpers = false, bool generateQueries = false, String suffix = 'Query'})
Instantiate a query definition.

Properties

classes → Iterable<Definition>
A list of classes related to this query.
final
className → String?
class name for helper classes
no setter
document → DocumentNode
The AST representation of GraphQL document.
final
documentName → String
name for document constant
no setter
documentOperationName → String
name for document operation name constant
no setter
generateHelpers → bool
If instances of GraphQLQuery should be generated.
final
generateQueries → bool
If query documents and operation names should be generated
final
hashCode → int
The hash code for this object.
no setterinherited
inputs → Iterable<QueryInput>
A list of inputs related to this query.
final
name → Name
The definition name.
finalinherited
namedProps → Map<String, Object?>
no setteroverride
operationName → String
graphql operation name for helper classes
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
suffix → String
The suffix of generated GraphQLQuery classes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited