pub trait CustomDirective: Sync + Send + 'static {
    fn resolve_field<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        ctx: &'life1 Context<'life2>,
        resolve: ResolveFut<'life3>
    ) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
, { ... } }
Expand description

Represents a custom directive.

Provided Methods

Called at resolve field.

Implementors