Table of Contents

Method SearchMeta

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

SearchMeta(FieldDefinition<TSource>)

Creates a search metadata projection.

public ProjectionDefinition<TSource> SearchMeta(FieldDefinition<TSource> field)

Parameters

field FieldDefinition<TSource>

The field.

Returns

ProjectionDefinition<TSource>

A search metadata projection.

SearchMeta(Expression<Func<TSource, object>>)

Creates a search metadata projection.

public ProjectionDefinition<TSource> SearchMeta(Expression<Func<TSource, object>> field)

Parameters

field Expression<Func<TSource, object>>

The field.

Returns

ProjectionDefinition<TSource>

A search metadata projection.