We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
a NEDB data collection with 2 entries, different type property :
type
{"_id":"<cardid>","type":"admin",...} {"_id":"<cardid>","type":"customer",...}
a cards feathers service
cards
a CURL query :
curl -H 'Content-Type: application/json' -X GET http://<host>/cards -d '{"type":"customer"}'
returns all the collection entries instead of filtering with params
{"total":1,"limit":10,"skip":0,"data":[{"_id":"<cardid>","type":"customer",...}]}
{"total":2,"limit":10,"skip":0,"data":[{"_id":"<cardid>","type":"admin",...},{"_id":"<cardid>","type":"customer",...}]}
Operating System: Debian 10 Buster
NodeJS: 14.16.0
feathers-nedb: 5.1.0
nedb: 1.8.0
The text was updated successfully, but these errors were encountered:
As documented in the Querying API you should use a query string, for HTTP GET requests not a JSON body:
GET
curl -H 'Content-Type: application/json' -X GET http://<host>/cards?type=customer
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
a NEDB data collection with 2 entries, different
type
property :a
cards
feathers servicea CURL query :
curl -H 'Content-Type: application/json' -X GET http://<host>/cards -d '{"type":"customer"}'
returns all the collection entries instead of filtering with params
Expected behavior
{"total":1,"limit":10,"skip":0,"data":[{"_id":"<cardid>","type":"customer",...}]}
Actual behavior
{"total":2,"limit":10,"skip":0,"data":[{"_id":"<cardid>","type":"admin",...},{"_id":"<cardid>","type":"customer",...}]}
System configuration
Operating System: Debian 10 Buster
NodeJS: 14.16.0
feathers-nedb: 5.1.0
nedb: 1.8.0
The text was updated successfully, but these errors were encountered: