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
A common use-case would be I have a complex nested object in my schema and I want to run an $or query for 'some.nested.path': true
In order to do this I have to list 'some.nested.path' separately in my querySchema. I think for paths containing types like ObjectIds this makes sense because there is a data transformation taking place. However, for simple types like a boolean, string, number, etc. the query would run just fine if I simply changed my querySchema to additionalProperties: true.
Suggestion to make $or, $and, etc allow additional properties optionally as well.
The text was updated successfully, but these errors were encountered:
When I query 'account.name' outside of the $or it works fine, no error.
Also using it inside the $or but commenting out the query validation hook also works.
For me setting additionalProperties: true makes no difference, I still get the same error.
So it's just a validation issue, it all works as expected.
Can you provide an example of how you specified the relational query syntax?
A common use-case would be I have a complex nested object in my schema and I want to run an $or query for
'some.nested.path': true
In order to do this I have to list
'some.nested.path'
separately in my querySchema. I think for paths containing types like ObjectIds this makes sense because there is a data transformation taking place. However, for simple types like a boolean, string, number, etc. the query would run just fine if I simply changed my querySchema toadditionalProperties: true
.Suggestion to make $or, $and, etc allow additional properties optionally as well.
The text was updated successfully, but these errors were encountered: