FireDAC.Phys.MongoDBWrapper.TMongoCollection.CommandSimple
Delphi
function CommandSimple(ACommand: TMongoDocument): TMongoDocument; overload;
function CommandSimple(const AJSON: String): TMongoDocument; overload;
C++
TMongoDocument* __fastcall CommandSimple(TMongoDocument* ACommand)/* overload */;
TMongoDocument* __fastcall CommandSimple(const System::UnicodeString AJSON)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TMongoCollection |
Description
Executes the specified database command on the collection and returns a document that contains the response from the server.
You may specify the database command to execute as an instance of TMongoCommand or as a string containing a database command defined in JSON format.
To specify a set of query flags, use Command instead of CommandSimple.
See Also
- FireDAC.Phys.MongoDBWrapper.TMongoCollection.Command
- FireDAC.Phys.MongoDBWrapper.TMongoCollection.LastError
- FireDAC.Phys.MongoDBWrapper.TMongoCollection.Validate