Database.byName()
Get a database document by its name.
Description
Each child database in a Fauna database is represented by a Database object, and each Database object has a name. This method gets the child database object by its name.
Returns the child database object if it exists.
Return value
One of:
Type | Description |
---|---|
Child database document. |
|
NullDatabaseDef |
Database doesn’t exist or is inaccessible. |
Examples
{
name: "Growers",
coll: Database,
ts: Time("2023-06-05T19:44:23.040Z"),
global_id: "ywmp5m111yyre",
typechecked: true,
priority: 10
}
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!