Skip to main content

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.

graphql
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:

graphql
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