[−][src]Trait async_graphql::extensions::Extension
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_start(&self, info: &ResolveInfo)
Called at the begin of the resolve field.
fn resolve_end(&self, info: &ResolveInfo)
Called at the end of the resolve field.
fn error(&self, err: &Error)
Called when an error occurs.
fn result(&self) -> Option<Value>
Get the results