Collection.byName()
Get a collection document by its name.
Description
Each collection in a Fauna database is represented by a collection object, and each collection object has a name. This method gets the collection object by its name.
Returns the collection object if it exists and is accessible.
Return value
One of:
Type | Description |
---|---|
Collection definition document. |
|
NullCollectionDef |
Collection object doesn’t exist or is inaccessible. |
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!