Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 367 Bytes

SubCollections.md

File metadata and controls

16 lines (11 loc) · 367 Bytes

Sub collections

Preliminary concept:

import { Document, Collection } from 'firestorter';

// Document reference
const doc = new Document('artists/FooFighters');

// Create a collection, with a "smart" reference to the
// document path, and adding the sub-collection name.
const albums = new Collection(() => `${doc.path}/albums`);

subject to change