Skip to content

Commit 6eff2ac

Browse files
Add guidance for retrieving all documents in a collection (#103)
1 parent 5d8f93a commit 6eff2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Calls [`findOneById()`](#findonebyid) for each id. Resolves to an array of docum
244244

245245
`this.findByFields(fields, { ttl })`
246246

247-
Resolves to an array of documents matching the passed fields.
247+
Resolves to an array of documents matching the passed fields. If an empty object is passed as the `fields` parameter, resolves to an array containing all documents in the given collection.
248248

249249
`fields` has this type:
250250

0 commit comments

Comments
 (0)