Python - collection.doc.get()

Retrieve the value of a document.

from nitric.resources import collection

enemies = collection('profiles').allow('reading')
drakes_profile = profiles.doc('Drake Mallard')

await drakes_profile.get()

Examples

Get a document's value

from nitric.resources import collection

profiles = collection('profiles').allow('reading')

drakesProfile = profiles.doc('Drake Mallard')
await drakesProfile.get()

See also