onCreate<T extends Model> static method
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);
}