Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CREATE COLLECTION

Creates a document collection with _id and doc fields.

CREATE COLLECTION events;
CREATE COLLECTION IF NOT EXISTS events;

Collections use the document codec and receive server-generated UUIDv7 identifiers when an inserted document does not provide _id. Use DROP COLLECTION to delete a collection.