Field selection dependency #4850
Replies: 4 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.
-
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