EnvironmentDefaultEvent
A lifecycle event for an environment default โ a resource pre-assigned to an environment so instances inherit it automatically when their connection schema matches the resource type.
Fires CREATED when setEnvironmentDefault adds a default and DELETED when
removeEnvironmentDefault clears one. Defaults are exposed as a paginated
environment.defaults connection, so refetch that page on receipt rather than
relying on cache merging โ the parent Environment row is unchanged.
Subscribe via environmentEvents.
type EnvironmentDefaultEvent implements Event {
action: EventAction!
timestamp: DateTime!
environmentDefault: EnvironmentDefault!
}
Fieldsโ
EnvironmentDefaultEvent.actionย โย EventAction! non-null enum {#action}โ
EnvironmentDefaultEvent.timestampย โย DateTime! non-null scalar {#timestamp}โ
EnvironmentDefaultEvent.environmentDefaultย โย EnvironmentDefault! non-null object {#environment-default}โ
The environment default 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โ
EnvironmentEventsPayload union