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 {
264264``` js
265265// get user by username
266266// `collection.find({ username: $in: ['testUser'] })`
267- this .getByFields ({
267+ this .findByFields ({
268268 username: ' testUser'
269269})
270270
271271// get all users with either the "gaming" OR "games" interest
272272// `collection.find({ interests: $in: ['gaming', 'games'] })`
273- this .getByFields ({
273+ this .findByFields ({
274274 interests: [' gaming' , ' games' ]
275275})
276276
277277// get user by username AND with either the "gaming" OR "games" interest
278278// `collection.find({ username: $in: ['testUser'], interests: $in: ['gaming', 'games'] })`
279- this .getByFields ({
279+ this .findByFields ({
280280 username: ' testUser' ,
281281 interests: [' gaming' , ' games' ]
282282})
You can’t perform that action at this time.
0 commit comments