Table of Contents

Method Wildcard

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

Wildcard(Expression<Func<TDocument, object>>)

Sets a wildcard key to the index.

public static IndexKeysBuilder<TDocument> Wildcard(Expression<Func<TDocument, object>> memberExpression = null)

Parameters

memberExpression Expression<Func<TDocument, object>>

The member expression representing 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<TDocument>

The builder (so method calls can be chained).