For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Generate a Wildcard Collection for a Federated Database Instance

You can dynamically generate collection names that map to data to your Atlas cluster or AWS S3 Bucket. 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 to configure the settings for generating wildcard (*) collections.

To learn how to generate a wildcard collection in your Data Store, Select your federated database instance Cloud provider from the dropdown menu:

You can dynamically generate collection names that map to data in your S3 bucket. 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 to configure the settings for generating wildcard (*) collections.

To generate wildcard collections in your federated database instance storage configuration that map to data in your S3 bucket, configure the following settings in your federated database instance storage configuration:

Example

"databases" : [
{
"name" : "<db-name>",
"collections" : [
{
"name" : "*",
"dataSources" : [
{
"storeName" : "<s3-store-name>",
"path" : "{collectionName()}"
}
]
}
],
"maxWildcardCollections" : <integer>,
}
]

You can also use the create (Data Federation Command) administration command and the federated database instance User Interface JSON Editor to configure the settings for generating wildcard collections. You can't use the federated database instance User Interface Visual Editor to configure the settings for generating wildcard collections.

You can dynamically generate collection names that map to data in your Atlas cluster. 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 to configure the settings for generating wildcard (*) collections.

For the Atlas data store, you can generate the following wildcard collections and databases in your federated database instance storage configuration:

  • Wildcard collections for a specific database

  • Wildcard databases with one wildcard collection

Note

You can also dynamically generate collection names that match a regex pattern.

To generate wildcard collections in your federated database instance storage configuration that map to data in your Atlas cluster, configure the following settings in your federated database instance storage configuration:

Example

"databases" : [
{
"name" : "<db-name>",
"collections" : [
{
"name" : "*",
"dataSources" : [
{
"storeName" : "<atlas-store-name>",
"database" : "<atlas-db-name>",
"collectionRegex" : "<regex-pattern>"
}
]
}
]
}
]

You can also use the create (Data Federation Command) administration command and the federated database instance User Interface to configure the settings for generating wildcard collections.

Rate this page