Skip to main content

GraphQLResolver

Trait GraphQLResolver 

Source
pub trait GraphQLResolver {
    // Required method
    fn resolve(
        &self,
        field: &str,
        args: &HashMap<String, Value>,
    ) -> DeviceResult<Value>;
}
Expand description

GraphQL resolver trait

Required Methods§

Source

fn resolve( &self, field: &str, args: &HashMap<String, Value>, ) -> DeviceResult<Value>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§