At
At( timestamp, expression )
At( timestamp, expression )
At( timestamp, expression )
At( timestamp, expression )
at( timestamp, expression )
At( timestamp, expression )
Description
The At
function executes a temporal query, a query which
examines the data in the past. The timestamp
parameter determines the
data available for viewing by creating a virtual snapshot of the data
which was current at that date and time. All reads from the associated
expression
is then executed on that virtual snapshot. In contrast, all
write operations must be executed at the current time. Attempting a
write operation at any other time produces an error.
Parameters
Parameter | Type | Definition and Requirements | ||
---|---|---|---|---|
|
The timestamp of the virtual snapshot of the data.
|
|||
|
FQL expression |
The FQL statement to be executed. |
Examples
The following query creates a snapshot of the data to read at "1970-01-01" and retrieves all collections that existed on that date:
ObjectV(data: Arr())
map[data:[]]
{data: []}
{ data: [] }
{'data': []}
{ data: [] }
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!