TransactionTime()
Get the query instantaneous transaction time.
Description
The TransactionTime is a placeholder that is set when the query
is committed. If the query doesn’t write, it is equivalent to the query
snapshot time, Time.now()
.
Examples
This example shows the transaction time, ts
, is the TransactionTime()
.
let doc = Customer.create({ email: "john.doe@example.com" })
[doc, doc.ts == TransactionTime()]
[
{
id: "401613404542861389",
coll: Customer,
ts: Time("2099-06-24T22:13:59.060Z"),
email: "john.doe@example.com"
},
true
]
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!