FragmentDefinition class
Fragments are the primary unit of composition in GraphQL.
Fragments allow for the reuse of common repeated Selections of fields, reducing duplicated text in the document.
InlineFragments can be used directly within a Selection to condition upon a TypeCondition when querying against an InterfaceTypeDefinition or UnionTypeDefinition.
- Inheritance
-
- Object
- GraphQLEntity
- ExecutableGraphQLEntity
- ExecutableWithResolver
- ExecutableDefinition
- FragmentDefinition
- Annotations
-
- @immutable
Constructors
- FragmentDefinition(FragmentDefinitionNode astNode, [GetExecutableType? getType])
-
const
Properties
- astNode → FragmentDefinitionNode
-
final
-
directives
→ List<
Directive> -
no setter
- getType → GetExecutableType
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
no setteroverride
- onType → TypeDefinition?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionSet → SelectionSet
-
no setter
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 o) → bool -
The equality operator.
inherited