Method Exists
Exists(FieldDefinition<TDocument>)
Creates a search definition that tests if a path to a specified indexed field name exists in a document.
public SearchDefinition<TDocument> Exists(FieldDefinition<TDocument> path)
Parameters
pathFieldDefinition<TDocument>The field to test for.
Returns
- SearchDefinition<TDocument>
An existence search definition.
Exists<TField>(Expression<Func<TDocument, TField>>)
Creates a search definition that tests if a path to a specified indexed field name exists in a document.
public SearchDefinition<TDocument> Exists<TField>(Expression<Func<TDocument, TField>> path)
Parameters
pathExpression<Func<TDocument, TField>>The field to test for.
Returns
- SearchDefinition<TDocument>
An existence search definition.
Type Parameters
TFieldThe type of the field.