Filtering/Sorting computed fields in Hot Chocolate #5112
Unanswered
kvanherpen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my application I have the following DTO object which holds a property returning a simple integer:
With the following GraphQL query I want to filter out properties that equal 4 (which will be none, but this is not relevant for the problem I want to sketch):
The following error is returned when executing the GraphQL query:
This makes me conclude that Hot Chocolate does seems to handle computed fields (as it will return a value of 3 without applying a filter), but that filtering doesn't seem to work on computed fields. Any thoughts on this?
Some more context on what I'm trying to do can be found on my related question on StackOverflow.
Beta Was this translation helpful? Give feedback.
All reactions