Skip to content

Commit be5a27f

Browse files
authored
Change getByFields to findByFields in README (#72)
1 parent 9e84ece commit be5a27f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)