|
ConnectionID | | (Required) Specifies a connection to a data source that is defined in the Settings.
For elements connecting to relational databases, default is the first Connection element in _settings.lgx. |
ID | | The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition. |
MaxRows | | The maximum number of rows to retrieve from the data source. |
MongoCollection | | (Required) Name of the Mongo collection. |
MongoFieldsDocument | | MongoFieldsDocument specifies a Mongo "fields" document to identify the values returned from a DataLayer.MongoFind query.
To vary the document content based on user or other input, use tokens inside the document, such as @Request tokens.
Example:
{
name : 1,
phone_office : 1
} |
MongoQueryDocument | | MongoQueryDocument specifies a Mongo "find" document to identify one or more documents.
To vary the document content based on user or other input, use tokens inside the document, such as @Request tokens.
Examples:
Find all documents with "type" equal to "snacks".
{ type: "snacks" }
Find all documents with "type" equal to "food" or "snacks"
{ type: { $in: [ "food", "snacks" ] } } |
MongoSortDocument | | MongoSortDocument specifies the results sort order for a DataLayer.MongoFind query.
To vary the document content based on user or other input, use tokens inside the document, such as @Request tokens.
Example:
{
country_name : 1,
city_population : -1
} |