[][src]Trait async_graphql::extensions::Extension

pub trait Extension: Sync + Send + 'static {
    fn name(&self) -> Option<&'static str> { ... }
fn parse_start(&self, query_source: &str) { ... }
fn parse_end(&self) { ... }
fn validation_start(&self) { ... }
fn validation_end(&self) { ... }
fn execution_start(&self) { ... }
fn execution_end(&self) { ... }
fn resolve_field_start(&self, info: &ResolveInfo) { ... }
fn resolve_field_end(&self, resolve_id: ResolveId) { ... }
fn result(&self) -> Option<Value> { ... } }

Represents a GraphQL extension

Provided methods

fn name(&self) -> Option<&'static str>[]

If this extension needs to output data to query results, you need to specify a name.

fn parse_start(&self, query_source: &str)[]

Called at the begin of the parse.

fn parse_end(&self)[]

Called at the end of the parse.

fn validation_start(&self)[]

Called at the begin of the validation.

fn validation_end(&self)[]

Called at the end of the validation.

fn execution_start(&self)[]

Called at the begin of the execution.

fn execution_end(&self)[]

Called at the end of the execution.

fn resolve_field_start(&self, info: &ResolveInfo)[]

Called at the begin of the resolve field.

fn resolve_field_end(&self, resolve_id: ResolveId)[]

Called at the end of the resolve field.

fn result(&self) -> Option<Value>[]

Get the results

Implementors

impl Extension for ApolloTracing[src][]

impl Extension for Tracing[src][]