reym
Projections/Schema/Field

@projectedAt

Using the @projectedAt directive the field reflects the time when the entry was last projected. This directive can only be applied to fields of the type DateTime!. It is created automatically for every projection and can be used to track the last projection time of the projection entry.

Example

user.graphql
type User @upsertOn(...) {
    projectedAt: DateTime! @projectedAt
}

In this case, the projectedAt field will contain the time when the the last change of the User projection entry was applied.

This differs from the @changedAt directive, which reflects the time when the event that triggered the projection update was created.

On this page