You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have struggled for a couple of days in how to make the operators to work with input fields as the syntax is a bit awkward compared to the typical mongodb filters.
I was thinking if it could be possible to use instead of the scalar input type and the operator type an union of both types. That way instead of doing:
I am willing to work on a PR for this, but I would need some feedback/pointers/help.
Up to now, I have been able to create a UnionTypeComposer from both types, but I don't know how replace the original input filter type with the union one.
The text was updated successfully, but these errors were encountered:
I have struggled for a couple of days in how to make the operators to work with input fields as the syntax is a bit awkward compared to the typical mongodb filters.
I was thinking if it could be possible to use instead of the scalar input type and the operator type an union of both types. That way instead of doing:
we could allow both type of queries:
I am willing to work on a PR for this, but I would need some feedback/pointers/help.
Up to now, I have been able to create a UnionTypeComposer from both types, but I don't know how replace the original input filter type with the union one.
The text was updated successfully, but these errors were encountered: