We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
writeOptions
1 parent dfb4f4c commit 07e27c7Copy full SHA for 07e27c7
lib/index.js
@@ -126,16 +126,12 @@ export async function createIndexes(options) {
126
/**
127
* Creates a streaming GridFS bucket instance.
128
*
129
- * By default the writeOptions config value is used for the GridFSBucket
130
- * writeConcern option.
131
- *
132
* @param {object} options - See GridFSBucket documentation.
133
134
* @returns {object} The new GridFSBucket instance.
135
*/
136
export function createGridFSBucket(options) {
137
- const opts = {...bedrock.config.mongodb.writeOptions, ...options};
138
- return new mongo.GridFSBucket(_db, opts);
+ return new mongo.GridFSBucket(_db, options);
139
}
140
141
async function _init() {
0 commit comments