pub trait GraphqlResolverBridge: Send + Sync {
// Required method
fn resolve_field<'a>(
&'a self,
field: &'a str,
args: &'a Value,
ctx: &'a Context,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'a>>;
}Expand description
Bridge that maps a GraphQL field resolution to a themql-core
Resolver call. Implementations are domain-specific.
This trait is dyn-compatible so root objects can hold
Arc<dyn GraphqlResolverBridge>.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".