Docs Menu
Docs Home
/
MongoDB Atlas
/ / /

Generate Wildcard Collections

You can dynamically generate collection names that map to data in your Atlas Data Lake datasets. To dynamically generate collection names, specify the wildcard, *, as the value for the collection name setting in your federated database instance storage configuration.

You can use the storageSetConfig command, the Atlas UI, and the create collections command to configure the settings for generating wildcard (*) collections.

To generate wildcard collections for your Data Lake datasets, you must configure the following settings in your federated database instance storage configuration:

You can also optionally specify the following settings:

Example

"databases" : [
{
"name" : "<db-name>",
"collections" : [
{
"name" : "*",
"dataSources" : [
{
"storeName" : "<adl-store-name>",
"datasetPrefix": "<dl-dataset-prefix>",
"trimLevel": 5,
"maxDatasets": 10
}
]
}
]
}
]
← Create From the UI