dotansimha / graphql-tools-rs

40 stars 3 forks source link

Access Field in OperationVisitor::enter_argument #45

Closed kamilkisiela closed 2 years ago

kamilkisiela commented 2 years ago
fn enter_argument(
        &mut self,
        info: &mut OperationVisitorContext<'a>,
        _: &mut Foo,
        arg: &(String, Value),
    )
    let type_name = info.current_parent_type().unwrap().name();
    let field_name = /* no way to access the field */; 
    let arg_name = arg.0.to_string();
}