Skip to main content

Event

Event object for all models.

type Event {
slug: String!
model: String!
id: BigInt!
createdAt: DateTime!
label: String!
data: GenericScalar!
diff: GenericScalar
contextId: NauticalUUID
context: GenericScalar
objModel: String!
objId: String!
}

Fields

Event.slug ● String! non-null scalar

The unique identifier across all event tables.

Event.model ● String! non-null scalar

The event model label formatted as 'app_label.ModelName'.

Event.id ● BigInt! non-null scalar

The primary key of the event.

Event.createdAt ● DateTime! non-null scalar

When the event was created.

Event.label ● String! non-null scalar

The event label.

Event.data ● GenericScalar! non-null scalar

The raw data of the event.

Event.diff ● GenericScalar scalar

The diff against the previous event of the same event model and object, can be null if the event is an insert.

Event.contextId ● NauticalUUID scalar

The context UUID, can be null if the event is not associated with a user or app.

Event.context ● GenericScalar scalar

The context JSON associated with the event, can be null if the event is not associated with a user or app.

Event.objModel ● String! non-null scalar

The object model.

Event.objId ● String! non-null scalar

The primary key of the object.

Returned By

events query

Was this page helpful?