Nitric logo

Collections

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


key required string

The key of the document to reference.


See also

Previous
collection.query.stream()