Database
Database( name, [database] )
Description
The Database
function returns a valid Reference for the specified
child database name
, within the specified child database
. If a child
database
is not specified, the returned database reference belongs to
the current database.
The Database
function only looks up child databases, so finding a
database using this function requires you to use an admin key for the
current database (a server or client key cannot be used to access any
child database).
It is not possible to access a parent or peer database with this function. To access databases outside of the current database, use the Fauna Dashboard. |
Returns
A reference to a child database with the specified name
, in the
specified child database
(or the current database is database
is not
specified).
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!