Skip to content

Commit f6584d8

Browse files
rkaszczukjyemin
authored andcommitted
Fixed example of RunCommand to working version
The examples of RunCommand usage don't work correctly - the generic BsonDocument parameter is missing.
1 parent ec9f257 commit f6584d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Docs/reference/content/getting_started/admin_quick_tour.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ Not all commands have a specific helper, however you can run any command by usin
233233
var buildInfoCommand = new BsonDocument("buildinfo", 1);
234234
```
235235
```csharp
236-
var result = database.RunCommand(buildInfoCommand);
236+
var result = database.RunCommand<BsonDocument>(buildInfoCommand);
237237
```
238238
```csharp
239-
var result = await database.RunCommandAsync(buildInfoCommand);
240-
```
239+
var result = await database.RunCommandAsync<BsonDocument>(buildInfoCommand);
240+
```

0 commit comments

Comments
 (0)