FireDAC.Phys.MongoDBWrapper.TMongoDocument
Delphi
TMongoDocument = class(TMongoObject)
C++
class PASCALIMPLEMENTATION TMongoDocument : public TMongoObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | FireDAC.Phys.MongoDBWrapper |
Description
Defines a document that is the key object in MongoDB API. Encapsulates MongoDB bson_t structure.
MongoDB stores all data in documents, which are JSON data structures composed of key-value pairs, for example:
{ "item": "pencil", "qty": 500, "type": "no.2" }
TMongoDocument is the key entity in MongoDB API that is responsible for exchanging data, building queries, processing errors, and more. TMongoDocument provides several methods and properties, such as:
- The Builder property: returns a reference to TJSONObjectBuilder BSON builder.
- The Iterator method: returns a reference to TJSONIterator BSON iterator.
- The Add, Append, and other methods that provide a simplified access to the builder.