GraphQLTableDataResolver<IdType extends GraphQLBaseId, Model> mixin

Superclass constraints

Properties

attributes Iterable<String>
no setter
client → GraphQLClient
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
table String
no setter

Methods

beforeCreate(Map<String, dynamic> json) → void
beforeUpdate(Map<String, dynamic> json) → void
count({GraphQLSearchOptions? searchOptions, GraphQLFetchPolicy? fetchPolicy}) Future<int>
create(Model model, {GraphQLFetchPolicy? fetchPolicy, GraphQLCacheRereadPolicy? cacheRereadPolicy}) Future<IdType>
decode(Model model) Map<String, dynamic>
delete(IdType id, {GraphQLFetchPolicy? fetchPolicy, GraphQLCacheRereadPolicy? cacheRereadPolicy}) Future<bool>
encode(Map<String, dynamic> json) → Model
findByPk({required IdType id, Iterable<String>? attributes, GraphQLFetchPolicy? fetchPolicy}) Future<Model?>
get({Iterable<String>? attributes, List<GraphQLQueryFilter>? filters, GraphQLOrderBy? orderBy}) Future<Model?>
list({Iterable<String>? attributes, GraphQLSearchOptions? searchOptions, GraphQLFetchPolicy? fetchPolicy}) Future<List<Model>>
mapId(dynamic value) → IdType
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paginatedList({Iterable<String>? attributes, GraphQLSearchOptions? searchOptions, GraphQLFetchPolicy? fetchPolicy}) Future<GraphQLPaginatedList<Model>>
parseList<T>(dynamic data) List<T>
subscribe({required IdType id, Iterable<String>? attributes, GraphQLFetchPolicy? fetchPolicy}) Stream<Model?>
subscribeList({Iterable<String>? attributes, GraphQLSearchOptions? searchOptions, GraphQLFetchPolicy? fetchPolicy}) Stream<List<Model>>
toString() String
A string representation of this object.
inherited
update({required Model model, String? id, List<String>? updateAttributes, GraphQLFetchPolicy? fetchPolicy, GraphQLCacheRereadPolicy? cacheRereadPolicy}) Future<bool>

Operators

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