Collections
Node.js - collection.doc()
Get a reference to a document in the collection.
import { collection } from '@nitric/sdk';
const profiles = collection('profiles').for('reading', 'writing');
const drakesProfile = profiles.doc('Drake Mallard');
Parameters
key required string
The key of the document to reference.