Imagine this ObjectType with field "bars" from FooResolver annotated with BazDirective
public class FooResolver {
public IEnumerable<Bar> GetBars(string name) {/*omitted*/}
}
public class FooType: ObjectType<Foo>
{
protected override void Configure(IObjectTypeDescriptor<Foo> descriptor) {
descriptor.Field<FooResolver>(_ => _.GetBars(default)).Directive<BazDirective>();
}
}
If we instead use extension binding
class FooType: ObjectType<Foo> {}
[ExtendObjectType(Name="Foo")]
class FooResolver {
[/* how to bind BazDirective? */]
public IEnumerable<Bar> GetBars(string name) {/* omitted */}
}
How to bind BazDirective?