|
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. |
FinalizeFunction | | Optional. Follows the reduce method and modifies the output.
|
ID | | (Required) 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. |
MapFunction | | (Required) A JavaScript function that associates or “maps” a value with a key and emits the key and value pair.
|
MaxRows | | The maximum number of rows to retrieve from the data source. |
MongoCollection | | (Required) Name of the Mongo collection. |
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" ] } } |
ReduceFunction | | (Required) A JavaScript function that “reduces” to a single object all the values associated with a particular key.
|