collection.doc.get()

Gets the value of a document.

import { collection } from '@nitric/sdk';
const profiles = collection('profiles').for('reading');
const drakesProfile = profiles.doc('Drake Mallard');
const drakeMallard = await drakesProfile.get();

Examples

Get a documents value

import { collection } from '@nitric/sdk';
const profiles = collection('profiles').for('reading');
const drakesProfile = profiles.doc('Drake Mallard');
const drakeMallard = await drakesProfile.get();

See also