Passing an incorrect operator when querying the REST API returns ALL documents #5008
rbruels
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
Hey @rbruels — this is actually expected - we just disregard query parameters that we do not recognize at this time. But, we can update this logic to throw a I will convert this to a feature request and we will track it accordingly there. Thank you for bringing this up! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Link to reproduction
No response
Describe the Bug
Passing an incorrect operator (i.e. an operator not defined in types/constants.ts) does not fail the query -- in fact, it returns all documents in that collection (!).
I would expect the query to fail — given the
where
it's clear that I'm trying to query the collection and not just specifying random query params.To Reproduce
Assuming
collection
has this data in it:Beta Was this translation helpful? Give feedback.
All reactions