FireDAC.Phys.MongoDBWrapper.TMongoSelector

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTMongoSelector

Delphi

TMongoSelector = class(TObject)

C++

class PASCALIMPLEMENTATION TMongoSelector : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper FireDAC.Phys.MongoDBWrapper

Description

Builder for a MongoDB selector, a query expression to filter a list of collections or the documents of a collection.

You can pass a selector builder to TMongoDatabase.ListCollections or TMongoCollection.Remove.

When you use TMongoSelector to select documents to remove from a collection, you must use TMongoSelector in combination with TMongoCollection.Remove. To work with these members, you can use two different coding styles.

Use Match to define the selection criteria of the selection document.

If you use TMongoSelector in combination with TMongoCollection.Remove and you use a fluent coding style, use Exec to execute the removal operation.

See Also