Get a database document
| Reading or writing database documents requires an admin key. |
Solution
Use the Get function:
{
ref: Database("annuvin"),
ts: 1622573508720000,
name: 'annuvin',
global_id: 'yoiji573cydyy'
}
{'ref': Ref(id=annuvin, collection=Ref(id=databases)), 'ts': 1622573511610000, 'name': 'annuvin', 'global_id': 'yoijihdqgydyy'}
map[global_id:yoiji3uwcybyy name:annuvin ref:{annuvin 0xc0001804b0 0xc0001804b0 <nil>} ts:1622573470750000]
ObjectV(ref: RefV(id = "annuvin", collection = RefV(id = "databases")),ts: LongV(1622573448030000),name: StringV(annuvin),global_id: StringV(yoijia8e1ybyy))
{ref: ref(id = "annuvin", collection = ref(id = "databases")), ts: 1622573481000000, name: "annuvin", global_id: "yoiji48irybyy"}
{
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.