Retrieve a single collection
Solution
Use the Get
function:
ObjectV(ref: RefV(id = "huts", collection = RefV(id = "collections")),ts: LongV(1622573782400000),history_days: LongV(30),name: StringV(huts))
map[history_days:30 name:huts ref:{huts 0xc000109830 0xc000109830 <nil>} ts:1622573814740000]
{ref: ref(id = "huts", collection = ref(id = "collections")), ts: 1622573835420000, history_days: 30, name: "huts"}
{
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!