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§
Sourcefn create_query_fields(&self, namespace: &Namespace) -> Vec<Field>
fn create_query_fields(&self, namespace: &Namespace) -> Vec<Field>
Creates the query fields for components in the given namespace.
Sourcefn create_query_field(
&self,
component: &Component,
interface_root_object_type: RootObjectType,
instance_root_object_type: RootObjectType,
) -> Field
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.