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.
1 parent 3fb8b8b commit 9f5faf4Copy full SHA for 9f5faf4
Docs/reference/content/reference/gridfs/gettingstarted.md
@@ -34,12 +34,12 @@ You can also provide options when instantiating the [`GridFSBucket`]({{< apiref
34
```csharp
35
IMongoDatabase database;
36
37
-var bucket = new GridFSBucket(database, new GridFSOptions
+var bucket = new GridFSBucket(database, new GridFSBucketOptions
38
{
39
BucketName = "videos",
40
ChunkSizeBytes = 1048576, // 1MB
41
- WriteConcern = WriteConcern.Majority,
42
- ReadPreference = ReadPeference.Secondary
+ WriteConcern = WriteConcern.WMajority,
+ ReadPreference = ReadPreference.Secondary
43
});
44
```
45
0 commit comments