ComponentEvent
A lifecycle event for a component.
Emitted when a component is added to a blueprint, moved on the canvas, renamed or
re-tagged, or removed. Subscribe via projectEvents.
type ComponentEvent implements Event {
action: EventAction!
timestamp: DateTime!
component: Component!
}
Fields
ComponentEvent.action ● EventAction! non-null enum {#action}
ComponentEvent.timestamp ● DateTime! non-null scalar {#timestamp}
ComponentEvent.component ● Component! non-null object {#component}
The component 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
ProjectEventsPayload union