Skip to main content
Version: 4.48.0

Initialize Storage

The Initialize Storage component allows you to initialize the Content Store. It takes an object with indexes and names for the indexes as configuration.

Configuration

Connection string

A MongoDB connection string.

Example: mongodb://<username>:<password>@localhost:27017/<databaseName>

Here <databaseName> is the database to add indexes.

Indexes JSON file that lists the indexes. The key of every object represents the name of the index and the parameters of each object are the indexes.

Example:

{
"auditLogs": {
"auditLogs": 1
},
"versionInfo": {
"major": -1,
"minor": -1
}
}

Inputs

Input

This input takes any message.

Outputs

Output

On success the output is

{ success: true }