Table of Contents

Method ElemMatch

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

ElemMatch(string, IMongoQuery)

Returns the first matching element in the array specified by name.

public FieldsBuilder ElemMatch(string name, IMongoQuery query)

Parameters

name string

The name.

query IMongoQuery

The query.

Returns

FieldsBuilder

The build (so method calls can be chained).