Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,15 @@ Alternatively you can use the ```gfs.findOne```-shorthand to find a single file
console.log(file);
});
```
## working with collection

If no collection name is specified, the default root mongodb gridfs collection `fs` will be used.

Use method `collection()` to change the default collection to `custom-collection-name`

```js
gfs.collection('custom-collection-name');
```

## using with mongoose

Expand Down