Connection stringA MongoDB connection string.
Example: mongodb://<username>:<password>@localhost:27017/<databaseName>
Here <databaseName>
is the database to do the look-up in.
Use TLSWhether or not to use TLS in case your mongoDB requires TLS.
Allow Invalid CertificatesChecking this will disable certificate validation. Warning: specifying this option in a production environment makes your application insecure and potentially vulnerable to expired certificates and to foreign processes posing as valid client instances.
Certificate Authority FileOne or more certificate authorities to trust when making a TLS connection. In order to access the local filesystem, the XILL4_WORKDIRS
environment variable must be set to the path of the directory to be accessed.
Example: .\ca.pem
Enforce strict modeWhen strict mode is turned on, every itemToResolve
must be resolved for a given input. Else an error will be thrown and no output will be sent.
ConfigurationThe configuration is an array of itemsToResolve
. Each of these objects has a fieldToResolve
, a query
and a fallback
value (optional).
The
Configuration input field uses HandleBars. For more information, please read
HandleBarsExample:
{
"itemsToResolve": [
{
"fieldToResolve": "source.location",
"query": { "source.id": "{{source.location}}" },
"fallback": 23
},
{
"fieldToResolve": "source.properties.mainDep",
"query": { "source.id": "{{source.properties.mainDep}}" },
"fallback": 50
}
]
}
Field to resolveThe key from the input data whose value will be modified. The value to resolve can be an array or a single value.
- single value: gets replaced by the migration ID of the document the query returns.
- array: each of the values gets replaced by the migration ID of the document each query returns.
QueryThe DB query to find a document whose migration.id we want to resolve with.
FallbackThe value that the field must be resolved with if no documents are found.