fn resolve_abstract_type<'a, R>(
    ctx: &'a ExecutionContext<'a, R>,
    abstract_type: &'a s::TypeDefinition,
    object_value: &q::Value,
) -> Result<&'a s::ObjectType, Vec<QueryExecutionError>>
where
    R: Resolver,
{
    // Let the resolver handle the type resolution, return an error if the resolution
    // yields nothing
    ctx.resolver
        .resolve_abstract_type(&ctx.schema.document, abstract_type, object_value)
        .ok_or_else(|| {
            vec![QueryExecutionError::AbstractTypeError(
                sast::get_type_name(abstract_type).to_string(),
            )]
        })
}
/// Resolves an abstract type (interface, union) into an object type based on the given value.
Resolves an abstract type (interface, union) into an object type based on the given value.
Resolves an abstract type ( interface union ) into an object type based on the given value .
fn resolve_abstract_type<'a, R>(
    ctx: &'a ExecutionContext<'a, R>,
    abstract_type: &'a s::TypeDefinition,
    object_value: &q::Value,
) -> Result<&'a s::ObjectType, Vec<QueryExecutionError>>
where
    R: Resolver,
{
    // Let the resolver handle the type resolution, return an error if the resolution
    // yields nothing
    ctx.resolver
        .resolve_abstract_type(&ctx.schema.document, abstract_type, object_value)
        .ok_or_else(|| {
            vec![QueryExecutionError::AbstractTypeError(
                sast::get_type_name(abstract_type).to_string(),
            )]
        })
}
fn resolve_abstract_type < ' a , R > ( ctx : & ' a ExecutionContext < ' a , R > , abstract_type : & ' a s :: TypeDefinition , object_value : & q :: Value , ) -> Result < & ' a s :: ObjectType , Vec < QueryExecutionError > > where R : Resolver , { // Let the resolver handle the type resolution, return an error if the resolution // yields nothing ctx . resolver . resolve_abstract_type ( & ctx . schema . document , abstract_type , object_value ) . ok_or_else ( | | { vec ! [ QueryExecutionError AbstractTypeError ( sast get_type_name ( abstract_type ) to_string ( ) ) ] } ) }
Resolves an abstract type (interface, union) into an object type based on the given value.
Resolves an abstract type ( interface union ) into an object type based on the given value .
ctx
&'a ExecutionContext<'a, R>
abstract_type
&'a s::TypeDefinition
object_value
&q::Value
ctx
&'a ExecutionContext<'a, R>
abstract_type
&'a s::TypeDefinition
object_value
&q::Value