FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
Create a collection
Solution
Use the CreateCollection
function:
{
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'}
map[history_days:30 name:huts ref:{huts 0xc0001837a0 0xc0001837a0 <nil>} ts:1622573814740000]
ObjectV(ref: RefV(id = "huts", collection = RefV(id = "collections")),ts: LongV(1622573782400000),history_days: LongV(30),name: StringV(huts))
{
ref: Collection("huts"),
ts: 1624310571870000,
history_days: 30,
name: 'huts'
}
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!