Skip to content

Add Collection

POST %%LIVEAPI_BASEURL_VAR%%/db/database
{
  "collection": ""
}

This endpoint creates a new collection in the specified database. It validates the collection name and adds it to the database's schema.

Jump To Definition


collection.js#L383

Source: lib / routes / collection.js

Branch: main

Repository: mongo-express