We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getByFields
findByFields
1 parent 9e84ece commit be5a27fCopy full SHA for be5a27f
README.md
@@ -264,19 +264,19 @@ interface Fields {
264
```js
265
// get user by username
266
// `collection.find({ username: $in: ['testUser'] })`
267
-this.getByFields({
+this.findByFields({
268
username: 'testUser'
269
})
270
271
// get all users with either the "gaming" OR "games" interest
272
// `collection.find({ interests: $in: ['gaming', 'games'] })`
273
274
interests: ['gaming', 'games']
275
276
277
// get user by username AND with either the "gaming" OR "games" interest
278
// `collection.find({ username: $in: ['testUser'], interests: $in: ['gaming', 'games'] })`
279
280
username: 'testUser',
281
282
0 commit comments