compareEnvironments
Compare two environments in the same project, instance-by-instance.
Instances are paired by component. For each component, the result reports the resolved version on each side and a flat, leaf-level diff of the configured params. Environment-level attributes and default wiring are not part of the comparison.
Both environments must belong to the same project; passing environments
from different projects returns a FORBIDDEN error because components
don't cross project boundaries.
query {
compareEnvironments(organizationId: "my-org", sourceId: "staging", targetId: "prod") {
source { id } target { id }
instances {
component { id name }
source { id } target { id }
version { source target equal }
params { path equal source { value } target { value } }
equal
}
}
}
compareEnvironments(
organizationId: ID!
sourceId: ID!
targetId: ID!
): EnvironmentComparison
Arguments
compareEnvironments.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
compareEnvironments.sourceId ● ID! non-null scalar {#source-id}
The source environment's identifier.
compareEnvironments.targetId ● ID! non-null scalar {#target-id}
The target environment's identifier.
Type
EnvironmentComparison object
Side-by-side comparison of two environments in the same project.
Returned by compareEnvironments. The comparison pairs instances by
component and reports a per-instance diff of the resolved version and
configured params. Environment-level attributes and default resource wiring
are intentionally out of scope.
Environments must belong to the same project — cross-project comparisons are not meaningful because components are project-scoped.