reym
Projections/Schema/Field

@changedAt

Using the @changedAt directive the field reflects the time when the entry was last changed. 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 change of the projection entry.

Example

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

In this case, the changedAt field will contain the time of the last change of the User projection entry.

On this page