Document Update
The Document Update component allows you to update data in the Content Store.
Handlebars
This component lets you use Handlebars templates. More information about Handlebars can be found in this section
Configuration
A MongoDB connection string.
Example: mongodb://<username>:<password>@localhost:27017/<databaseName>
Here <databaseName>
is the database to update the content in.
Whether or not to use TLS in case your mongoDB requires TLS.
Allow Invalid CertificatesChecking this will disable certificate validation.
One 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
Enables component-level document validation. (default: true). Component-level validation will give you more detailed messages about the document requirements than database validation.
Parse ISO datesEnables auto parsing of ISO dates to a date object. Can be used when updating a part of a document containing multiple properties of which at least one is a date.
QueryA valid Mongo query that can be passed in find()
. Example:{"kind":"CONTAINER"}
You can use Handlebars to create dynamic queries. For nested keys, you can use the so-called dot-notation.
An empty query value or empty object {}
will return all the data from the database.
Example:{ $set {"keyToUpdate": "valueToSet" } }
Variables can be used as explained in Query