GraphqlQueryOperationTransformer class abstract
This class should be subclassed for each model. For example:
@GraphqlSerializable(
queryOperationTransformer: MyModelOperationTransformer.new,
)
class MyModel extends GraphqlModel {}
class MyModelOperationTransformer extends GraphqlQueryOperationTransformer<MyModel> {
final get = GraphqlOperation(
document: r'''
query GetPeople() {
getPerson() {}
}
'''
);
}
Constructors
- GraphqlQueryOperationTransformer(Query? query, Model? instance)
-
const
Properties
- delete → GraphqlOperation?
-
The operation used for any destructive data operations that
should use GraphQL's
mutation
. Only the header of the operation is required. For exampleno setter - get → GraphqlOperation?
-
The operation used for any single-fetch data operations that
should use GraphQL's
query
. Only the header of the operation is required. For exampleno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- instance → Model?
-
The model being sent to the GraphQL server; this will
only be non-null for upsert and delete operations.
final
- query → Query?
-
A query provided with the provider or repository request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscribe → GraphqlOperation?
-
The operation used for any streaming data operations that
should use GraphQL's
subscription
. Only the header of the operation is required. For exampleno setter - upsert → GraphqlOperation?
-
The operation used for any destructive data operations that
should use GraphQL's
mutation
. Only the header of the operation is required. For exampleno 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 other) → bool -
The equality operator.
inherited