Table of Contents

Method NotExists

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

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

Tests that an element of that name does not exist (see $exists).

public static IMongoQuery NotExists<TMember>(Expression<Func<TDocument, TMember>> memberExpression)

Parameters

memberExpression Expression<Func<TDocument, TMember>>

The member expression.

Returns

IMongoQuery

An IMongoQuery.

Type Parameters

TMember

The member type.