pub trait Executor: Unpin + Clone + Send + Sync + 'static {
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        request: Request
    ) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn execute_stream(
        &self,
        request: Request,
        session_data: Option<Arc<Data>>
    ) -> BoxStream<'static, Response>; fn execute_batch<'life0, 'async_trait>(
        &'life0 self,
        batch_request: BatchRequest
    ) -> Pin<Box<dyn Future<Output = BatchResponse> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
, { ... } }
Expand description

Represents a GraphQL executor

Required Methods§

Execute a GraphQL query.

Execute a GraphQL subscription with session data.

Provided Methods§

Execute a GraphQL batch query.

Implementors§