Table of Contents

Method Meta

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Meta<TDocument>(ProjectionDefinition<TDocument>, string, string)

Combines an existing projection with a meta projection.

public static ProjectionDefinition<TDocument> Meta<TDocument>(this ProjectionDefinition<TDocument> projection, string field, string metaFieldName)

Parameters

projection ProjectionDefinition<TDocument>

The projection.

field string

The field.

metaFieldName string

The meta field name.

Returns

ProjectionDefinition<TDocument>

A combined projection.

Type Parameters

TDocument

The type of the document.