SearchDefinitionBuilderTDocumentExistsTField Method (ExpressionFuncTDocument, TField) |
Creates a search definition that tests if a path to a specified indexed field name
exists in a document.
Namespace:
MongoDB.Driver.Search
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax public SearchDefinition<TDocument> Exists<TField>(
Expression<Func<TDocument, TField>> path
)
Public Function Exists(Of TField) (
path As Expression(Of Func(Of TDocument, TField))
) As SearchDefinition(Of TDocument)
member Exists :
path : Expression<Func<'TDocument, 'TField>> -> SearchDefinition<'TDocument>
Parameters
- path
- Type: System.Linq.ExpressionsExpressionFuncTDocument, TField
The field to test for.
Type Parameters
- TField
- The type of the field.
Return Value
Type:
SearchDefinitionTDocumentAn existence search definition.
See Also