Database.byName()
Gets a Database
collection document by its name.
Description
The Database.byName()
method gets a Database
collection document
by its name
field value, if it exists. Each Database
collection
has a name
value.
Return value
Type | Description |
---|---|
Resolved reference to a
|
Examples
Database.byName("childDB")
{
name: "childDB",
coll: Database,
ts: Time("2099-06-24T21:54:38.890Z"),
global_id: "ysjpykbahyyr1",
priority: 10,
typechecked: true
}
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!