File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -264,19 +264,19 @@ interface Fields {
264
264
``` js
265
265
// get user by username
266
266
// `collection.find({ username: $in: ['testUser'] })`
267
- this .getByFields ({
267
+ this .findByFields ({
268
268
username: ' testUser'
269
269
})
270
270
271
271
// get all users with either the "gaming" OR "games" interest
272
272
// `collection.find({ interests: $in: ['gaming', 'games'] })`
273
- this .getByFields ({
273
+ this .findByFields ({
274
274
interests: [' gaming' , ' games' ]
275
275
})
276
276
277
277
// get user by username AND with either the "gaming" OR "games" interest
278
278
// `collection.find({ username: $in: ['testUser'], interests: $in: ['gaming', 'games'] })`
279
- this .getByFields ({
279
+ this .findByFields ({
280
280
username: ' testUser' ,
281
281
interests: [' gaming' , ' games' ]
282
282
})
You can’t perform that action at this time.
0 commit comments