Collection metadata
Solution
Set the data
field in a collection:
{
ref: Collection("dilapidated_huts"),
ts: 1635183253930000,
history_days: 30,
name: 'dilapidated_huts',
data: { env: 'test' }
}
Discussion
Adding metadata to a collection can be used to store any information that helps to distinguish the collection from other collections.
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!