Retrieve a single collection
Solution
Use the Get
function:
map[history_days:30 name:huts ref:{huts 0xc000109830 0xc000109830 <nil>} ts:1622573814740000]
{
ref: Collection("huts"),
ts: 1622573894320000,
history_days: 30,
name: 'huts'
}
{'ref': Ref(id=huts, collection=Ref(id=collections)), 'ts': 1622573899290000, 'history_days': 30, 'name': 'huts'}
{
ref: Collection("huts"),
ts: 1624310571870000,
history_days: 30,
name: 'huts'
}
Discussion
A collection document describes the container that contains documents; it is not the container itself.
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!