Table of Contents

Method Wildcard

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

Wildcard(string)

Sets a wildcard key to the index. The method doesn't expect to specify a wildcard key explicitly.

public IndexKeysBuilder Wildcard(string name = null)

Parameters

name string

The wildcard key name. If the wildcard name is empty, the generated key will be All field paths, otherwise A single field path.

Returns

IndexKeysBuilder

The builder (so method calls can be chained).