Title: Using find() with &in returns zero records · Issue #757 · feathersjs/feathers · GitHub
Open Graph Title: Using find() with &in returns zero records · Issue #757 · feathersjs/feathers
X Title: Using find() with &in returns zero records · Issue #757 · feathersjs/feathers
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, js...
Open Graph 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 rep...
X 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 rep...
Opengraph URL: https://github.com/feathersjs/feathers/issues/757
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using find() with \u0026in returns zero records","articleBody":"### Steps to reproduce\r\n\r\n(First please check that this issue is not already solved as [described\r\nhere](https://github.com/feathersjs/feathers/blob/master/.github/contributing.md#report-a-bug))\r\n\r\n- [ ] Tell us what broke. The more detailed the better.\r\n- [ ] 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.\r\n\r\n### Expected behavior\r\nExpected to return two items from the databse\r\n\r\n### Actual behavior\r\nReturned no records\r\n\r\n### System configuration\r\ncreate-react-app and feathers-cli g app\r\n\r\nUsing find and $in on a MongoDB service, the results I receive are;\r\n````js\r\n{\r\n \"total\": 0,\r\n \"limit\": 20,\r\n \"skip\": 0,\r\n \"data\": []\r\n}\r\n````\r\n\r\nThe two records below are valid `_id`s of record in the `cards` service;\r\n`http://localhost:3030/cards?_id[$in]=5a344774f254c60f9c083aab\u0026_id[$in]=5a344791f254c60f9c083ab1`\r\n\r\nUsing the following URL, I can see those records;\r\n`http://localhost:3030/cards`\r\n\r\nI do not receive the same results via socket;\r\n````js\r\n cardsService.find({\r\n query: {\r\n _id: {\r\n $in: ['5a344774f254c60f9c083aab', '5a344791f254c60f9c083ab1']\r\n }\r\n }\r\n })\r\n .then(result =\u003e {\r\n console.log(\"cards: \", result);\r\n })\r\n .catch(err =\u003e console.warn(err));\r\n````\r\n","author":{"url":"https://github.com/ComputerCarl","@type":"Person","name":"ComputerCarl"},"datePublished":"2017-12-19T18:48:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/757/feathers/issues/757"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7461376a-83e4-816b-2133-785a9ed138c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA4C:6954E:53BC1D:6C4EF6:698EABCA |
| html-safe-nonce | e3cbdc228a6138cec69fc9a237578f5244dc4cf26d6f8d69ac49bf4744c99910 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTRDOjY5NTRFOjUzQkMxRDo2QzRFRjY6Njk4RUFCQ0EiLCJ2aXNpdG9yX2lkIjoiNTE1NDgwNjY0NjQ4NDkzNzY3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1bf29f495a006aa2680e9d71bf79abe0cff719a47fcd59456f667570ee464524 |
| hovercard-subject-tag | issue:283331967 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feathersjs/feathers/757/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41801bd716bda4d23cc1c198e953e629a1fc20d54fd18935722613ccf8912c55/feathersjs/feathers/issues/757 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41801bd716bda4d23cc1c198e953e629a1fc20d54fd18935722613ccf8912c55/feathersjs/feathers/issues/757 |
| og:image:alt | 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 rep... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ComputerCarl |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/feathersjs/feathers git https://github.com/feathersjs/feathers.git |
| octolytics-dimension-user_id | 5321853 |
| octolytics-dimension-user_login | feathersjs |
| octolytics-dimension-repository_id | 2609642 |
| octolytics-dimension-repository_nwo | feathersjs/feathers |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2609642 |
| octolytics-dimension-repository_network_root_nwo | feathersjs/feathers |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width