Is there a way to add a dependency for some field?
This example returns null if descriptionLocaleId is not selected in gql query.
descriptor.Field("description").Resolver(ctx => ctx.Parent<Item>().DescriptionLocaleId);
I am using EF Core 5, Hot Chocolate v11 with UseProjectionAttribute
Desired functionality:
descriptor.Field("description").DependsOn(x => x.DescriptionLocaleId).Resolver(ctx => ctx.Parent<Item>().DescriptionLocaleId);
Is there a way to add a dependency for some field?
This example returns
nullifdescriptionLocaleIdis not selected in gql query.I am using EF Core 5, Hot Chocolate v11 with
UseProjectionAttributeDesired functionality: