Projections/Schema/Field
@createdAt
Using the @createdAt
directive the field reflects the time when the entry was first created.
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
type User @upsertOn(...) {
createdAt: DateTime! @createdAt
}
In this case, the createdAt
field will contain the time of the last change of the User
projection entry.