Method Meta

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Meta(ProjectionDefinition, 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

The projection.

field string

The field.

metaFieldName string

The meta field name.

Returns

ProjectionDefinition

A combined projection.

Type Parameters

TDocument

The type of the document.