Create a document in a collection
Solution
Use the Create
function:
{
ref: Ref(Collection("dilapidated_huts"), "302044124774662656"),
ts: 1624310574250000,
data: { material: 'straw' }
}
Discussion
The Create
function needs both the Reference to a collection and
the document’s data.