Field selection dependency #4850
JakeSmokie
started this conversation in
Feature Request
Replies: 3 comments
-
@JakeSmokie For now you can use the IsProjectedAttribute [IsProjected(true)]
public string DescriptionLocaleId {get;set;} or set it via descriptor.Field(x => x.DescriptionLocaleId).IsProjected(true); This way this field is always projected and your resolver should work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any plans when that feature could be added? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also waiting for this feature, would be a great addition. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to add a dependency for some field?
This example returns
null
ifdescriptionLocaleId
is not selected in gql query.I am using EF Core 5, Hot Chocolate v11 with
UseProjectionAttribute
Desired functionality:
Beta Was this translation helpful? Give feedback.
All reactions