LinkEvent
A lifecycle event for a blueprint link between two components.
Emitted when components are linked or unlinked in a project's blueprint. Links have
no mutable body, so only CREATED and DELETED actions are emitted. Subscribe via
projectEvents.
type LinkEvent implements Event {
action: EventAction!
timestamp: DateTime!
link: Link!
}
Fields
LinkEvent.action ● EventAction! non-null enum {#action}
LinkEvent.timestamp ● DateTime! non-null scalar {#timestamp}
LinkEvent.link ● Link! non-null object {#link}
The link that was created 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