-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$in query operator not properly supported #140
Comments
@alex-all3dp |
after you confirmation i will release a new version |
Hi @josx, We just encountered that it would be necessary for us to support even more operators, e.g. from https://github.com/feathersjs-ecosystem/feathers-objection#query-operators. Other users may want to use query operators from other feathers adapters as well. Would it be possible to make a change that allows to pass custom queryOperators and merge them with the currently hardcoded defaults? |
I think it would be great, to have that feature. |
Filter params with the $in operator like:
should be passed as is to the feathers client in order to result in query parameters of the format:
The
flatten
function inrestClient.js
incorrectly translates the input filter incorrectly to the following query:which results in the query parameters:
/path?name.$in[0]=abc&name.$in[1]=def
Simply adding
$in
to thequeryOperators
(asstopKeys
parameter input) results in the correct query formatwhich results in the query parameters
/path?name[$in][0]=abc&name[$in][1]=def
The text was updated successfully, but these errors were encountered: