FireDAC.Phys.MongoDBWrapper.TMongoDatabase.CommandSimple

From RAD Studio API Documentation
Jump to: navigation, search

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 TMongoDatabase

Description

Executes the specified database command on the database 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