Skip to main content

ProjectEvent

A lifecycle event for a project.

Emitted when a project is created, updated (renamed, settings changed), or deleted. Subscribe via organizationEvents or projectEvents.

type ProjectEvent implements Event {
action: EventAction!
timestamp: DateTime!
project: Project!
}

Fields

ProjectEvent.action ● EventAction! non-null enum {#action}

ProjectEvent.timestamp ● DateTime! non-null scalar {#timestamp}

ProjectEvent.project ● Project! non-null object {#project}

The project that was created, updated, or deleted.

Interfaces

Event interface

Base interface implemented by all lifecycle events.

Every event carries an action describing what happened and a timestamp recording when it occurred. Concrete event types add a field for the affected resource.

Because each subscription returns a union, use an ... on Event fragment to access the shared fields and concrete fragments for the resource payload:

subscription {
projectEvents(organizationId: "my-org", projectId: "my-project") {
... on Event { action timestamp }
... on ComponentEvent {
component { id name }
}
... on LinkEvent {
link { id fromField toField }
}
}
}

Implemented By

OrganizationEventsPayload union ● ProjectEventsPayload union