Python - collection.doc.get()
Retrieve the value of a document.
from nitric.resources import collectionenemies = collection('profiles').allow('reading')drakes_profile = profiles.doc('Drake Mallard')await drakes_profile.get()
Examples
Get a document's value
from nitric.resources import collectionprofiles = collection('profiles').allow('reading')drakesProfile = profiles.doc('Drake Mallard')await drakesProfile.get()
See also
Last updated on Jan 21, 2025