pub trait EntityMutationFieldFactory:
Send
+ Sync
+ Lifecycle {
// Required methods
fn create_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>;
fn create_creation_field(&self, entity_type: &EntityType) -> Field;
}Required Methods§
Sourcefn create_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>
fn create_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>
Creates the mutation fields for entity types in the given namespace.
Sourcefn create_creation_field(&self, entity_type: &EntityType) -> Field
fn create_creation_field(&self, entity_type: &EntityType) -> Field
Creates the creation field for the given entity type.