Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs Menu
Docs Home
/ /

create (Data Federation Command)

The create command creates a collection for existing stores or a view on a collection in the federated database instance storage configuration. Select whether you want to create a collection or a view, then select the applicable options to see the relevant details.

The command returns the following output if it succeeds. You can verify the results by running the commands in Verify Collection. If it fails, see Troubleshoot Errors below for recommended solutions.

{ ok: 1 }

You can verify that the command successfully created the collection or view by running any of the following commands:

show collections
db.runCommand({ "storageGetConfig" : 1 })
db.runCommand({ "listCollections" : 1 })

Back

List Stores

On this page