Get a database document
Reading or writing database documents requires an admin key. |
Solution
Use the Get
function:
{
ref: Database("annuvin"),
ts: 1624310575420000,
name: 'annuvin',
global_id: 'yoat8nnggybyy'
}
Discussion
It is not possible to access the parent database, the current database,
or any of the current database’s peers (that may exist) using
Get
. You can only retrieve the documents that describe child
databases.
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!