GraphQLQuery<T, U extends JsonSerializable> class
abstract
A GraphQL query abstraction. This class should be extended automatically by Artemis and used with ArtemisClient.
Constructors
- GraphQLQuery({U? variables})
- Instantiates a query or mutation.
Properties
- document ↔ DocumentNode
-
AST representation of the document to be executed.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- operationName → String?
-
Operation name used for this query/mutation.
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
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - variables → U?
-
Typed query/mutation variables.
final
Methods
-
getVariablesMap(
) → Map< String, dynamic> - Get variables as a JSON map.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
Map< String, dynamic> json) → T - Parses a JSON map into the response type.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited