Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 384 Bytes

create.md

File metadata and controls

21 lines (12 loc) · 384 Bytes

manager.create

Create a collection.

Arguments

  1. name (string): name of the mongo collection

  2. [creationOptions] (object): options to create the collection

  3. [options] (object): collection level options

Returns

A Collection instance.

Example

const users = db.create('users', { capped: true, size: n })