get<T extends Model> static method

GraphQLRequest<T> get<T extends Model>(
  1. ModelType<T> modelType,
  2. String id
)

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);
}