Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 377 Bytes

add-collection.md

File metadata and controls

18 lines (12 loc) · 377 Bytes
outline
deep

Indiekit.addCollection

This method is enables plug-ins to add a new collection to the MongoDB database for storing data.

Syntax

new Indiekit.addCollection(name);

Constructor

name : Collection name. This cannot share the name of a collection added by another plug-in. Indiekit currently adds 2 collections: posts and media.