FireDAC.Phys.MongoDBWrapper.TMongoCommand.Command
Delphi
function Command(const AArgs: array of const): TMongoCommand; overload;
function Command(const AJSON: String): TMongoCommand; overload;
C++
TMongoCommand* __fastcall Command(const System::TVarRec *AArgs, const System::NativeInt AArgs_High)/* overload */;
TMongoCommand* __fastcall Command(const System::UnicodeString AJSON)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TMongoCommand |
Description
Defines the database command of this command builder.
AArgs
or AJSON
must be the command data in the same format that you would use with the Append method of a document. For example:
Delphi:
MyCommand.Command(['ping', 1]);
MyCommand.Command('{ "ping": 1 }');
C++:
MyCommand->Command(ARRAYOFCONST((String("ping"), 1)));
MyCommand->Command("{ 'ping': 1 }");