ComponentQueryFieldFactory

Trait ComponentQueryFieldFactory 

Source
pub trait ComponentQueryFieldFactory:
    Send
    + Sync
    + Lifecycle {
    // Required methods
    fn create_query_fields(&self, namespace: &Namespace) -> Vec<Field>;
    fn create_query_field(
        &self,
        component: &Component,
        interface_root_object_type: RootObjectType,
        instance_root_object_type: RootObjectType,
    ) -> Field;
}

Required Methods§

Source

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

Creates the query fields for components in the given namespace.

Source

fn create_query_field( &self, component: &Component, interface_root_object_type: RootObjectType, instance_root_object_type: RootObjectType, ) -> Field

Creates the query field for the given component.

Trait Implementations§

Source§

impl Injectable for dyn ComponentQueryFieldFactory + Sync + Send

Implementors§