createCollection

createCollection

createCollection

Add a new CMS Collection.

const newCollection = await framer.createCollection(name)

Parameters

  • name: string – The name to give the new collection

Returns

  • Promise<Collection>

Caveats

  • If an name is provided which matches an existing Collection, the promise will reject