Trait SelectionSetResolverExtension

Source
pub trait SelectionSetResolverExtension: Sized + 'static {
    // Required methods
    fn new(
        subgraph_schemas: Vec<SubgraphSchema<'_>>,
        config: Configuration,
    ) -> Result<Self, Error>;
    fn prepare(
        &mut self,
        subgraph_name: &str,
        field: Field<'_>,
    ) -> Result<Vec<u8>, Error>;
    fn resolve(
        &mut self,
        headers: SubgraphHeaders,
        subgraph_name: &str,
        prepared: &[u8],
        arguments: ArgumentValues<'_>,
    ) -> Result<Data, Error>;
}

Required Methods§

Source

fn new( subgraph_schemas: Vec<SubgraphSchema<'_>>, config: Configuration, ) -> Result<Self, Error>

Source

fn prepare( &mut self, subgraph_name: &str, field: Field<'_>, ) -> Result<Vec<u8>, Error>

Source

fn resolve( &mut self, headers: SubgraphHeaders, subgraph_name: &str, prepared: &[u8], arguments: ArgumentValues<'_>, ) -> Result<Data, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§