Table of Contents

Class GroupBy

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

A builder for specifying what the GroupBy command should group by.

public static class GroupBy
Inheritance
GroupBy
Inherited Members

Methods

Function(BsonJavaScript)

Sets a key function.

public static BsonJavaScript Function(BsonJavaScript keyFunction)

Parameters

keyFunction BsonJavaScript

The key function.

Returns

BsonJavaScript

A BsonJavaScript.

Keys(params string[])

Sets one or more key names.

public static GroupByBuilder Keys(params string[] names)

Parameters

names string[]

One or more key names.

Returns

GroupByBuilder

The builder (so method calls can be chained).