-
-
Notifications
You must be signed in to change notification settings - Fork 790
Closed
Description
Steps to reproduce
(First please check that this issue is not already solved as described
here)
- Tell us what broke. The more detailed the better.
- If you can, please create a simple example that reproduces the issue and link to a gist, jsbin, repo, etc. This makes it much easier for us to debug and issues that have a reproducable example will get higher priority.
Expected behavior
Expected to return two items from the databse
Actual behavior
Returned no records
System configuration
create-react-app and feathers-cli g app
Using find and $in on a MongoDB service, the results I receive are;
{
"total": 0,
"limit": 20,
"skip": 0,
"data": []
}The two records below are valid _ids of record in the cards service;
http://localhost:3030/cards?_id[$in]=5a344774f254c60f9c083aab&_id[$in]=5a344791f254c60f9c083ab1
Using the following URL, I can see those records;
http://localhost:3030/cards
I do not receive the same results via socket;
cardsService.find({
query: {
_id: {
$in: ['5a344774f254c60f9c083aab', '5a344791f254c60f9c083ab1']
}
}
})
.then(result => {
console.log("cards: ", result);
})
.catch(err => console.warn(err));Metadata
Metadata
Assignees
Labels
No labels