Documents have a lifecycle, and we can run a block of code when the document is created.
will construct the document:
Constructors can also accept a
client and message argument. For instance, the following is a more representive constructor.
As documents can only be constructed once, this enables games and documents to have an authoritative owner and initial state which can be used within privacy policies.