Field selection dependency #4850
Replies: 5 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.
-
|
Any plans when that feature could be added? |
Beta Was this translation helpful? Give feedback.
-
|
Also waiting for this feature, would be a great addition. |
Beta Was this translation helpful? Give feedback.
-
|
Is there any further progress on this feature? |
Beta Was this translation helpful? Give feedback.
-
|
I also am looking for this feature :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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:
Beta Was this translation helpful? Give feedback.
All reactions