get<T extends Model> static method
Generates a request for a single instance of the modelType
by id
.
final request = ModelQueries.get(Todo.classType, 'some-todo-id-123');
Implementation
static GraphQLRequest<T> get<T extends Model>(
ModelType<T> modelType, String id) {
return ModelQueriesFactory.instance.get<T>(modelType, id);
}