EntityMutationFieldFactory

Trait EntityMutationFieldFactory 

Source
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§

Source

fn create_mutation_fields(&self, namespace: &Namespace) -> Vec<Field>

Creates the mutation fields for entity types in the given namespace.

Source

fn create_creation_field(&self, entity_type: &EntityType) -> Field

Creates the creation field for the given entity type.

Trait Implementations§

Source§

impl Injectable for dyn EntityMutationFieldFactory + Sync + Send

Implementors§