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