pub fn for_field(
        &self,
        field: &'a q::Field,
        object_type: impl Into<ObjectOrInterface<'a>>,
    ) -> Result<Self, QueryExecutionError> {
        let mut ctx = self.clone();
        ctx.fields.push(field);
        if let Some(bc) = field.block_constraint(object_type)? {
            ctx.block = self.resolver.locate_block(&bc)?;
        }
        Ok(ctx)
    }
/// Creates a derived context for a new field (added to the top of the field stack).
Creates a derived context for a new field (added to the top of the field stack).
Creates a derived context for a new field ( added to the top of the field stack ) .
pub fn for_field(
        &self,
        field: &'a q::Field,
        object_type: impl Into<ObjectOrInterface<'a>>,
    ) -> Result<Self, QueryExecutionError> {
        let mut ctx = self.clone();
        ctx.fields.push(field);
        if let Some(bc) = field.block_constraint(object_type)? {
            ctx.block = self.resolver.locate_block(&bc)?;
        }
        Ok(ctx)
    }
pub fn for_field ( & self , field : & ' a q :: Field , object_type : impl Into < ObjectOrInterface < ' a > > , ) -> Result < Self , QueryExecutionError > { let mut ctx = self . clone ( ) ; ctx . fields . push ( field ) ; if let Some ( bc ) = field . block_constraint ( object_type ) ? { ctx . block = self . resolver . locate_block ( & bc ) ? ; } Ok ( ctx ) }
Creates a derived context for a new field (added to the top of the field stack).
Creates a derived context for a new field ( added to the top of the field stack ) .
&self
field
&'a q::Field
object_type
impl Into<ObjectOrInterface<'a>>
&self
field
&'a q::Field
object_type
impl Into<ObjectOrInterface<'a>>