Table of Contents

Method SetQuery

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

SetQuery<TMember>(Expression<Func<TDocument, TMember>>, TMember)

Sets the query on the optional additional field.

public GeoHaystackSearchOptionsBuilder<TDocument> SetQuery<TMember>(Expression<Func<TDocument, TMember>> memberExpression, TMember value)

Parameters

memberExpression Expression<Func<TDocument, TMember>>

The member expression.

value TMember

The value fo the additional field.

Returns

GeoHaystackSearchOptionsBuilder<TDocument>

The builder (so method calls can be chained).

Type Parameters

TMember

The type of the member.