onCreate<T extends Model> static method

GraphQLRequest<T> onCreate<T extends Model>(
  1. ModelType<T> modelType
)

Generates a subscription request for the creation of any instance of the modelType.

final request = ModelSubscriptions.onCreate(Todo.classType);

Implementation

static GraphQLRequest<T> onCreate<T extends Model>(ModelType<T> modelType) {
  return ModelSubscriptionsFactory.instance.onCreate<T>(modelType);
}