Python - collection.doc()
Get a reference to a document in the collection.
from nitric.resources import collectionprofiles = collection('profiles').allow('reading','writing')drakes_profile = profiles.doc('Drake Mallard')
Parameters
- Name
key
- Required
- Required
- Type
- string
- Description
The key of the document to reference.
See also
Last updated on Dec 5, 2024