Python - collection.doc()
Get a reference to a document in the collection.
from nitric.resources import collection
profiles = 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.