Node.js - collection.doc.get()

Retrieve 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 document's 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