linkComponents
Create a link between two components.
Declares that the fromField output of one component should be wired to the
toField input of another. Massdriver validates that the resource types are
compatible before creating the link. When environments are deployed, each link
becomes a connection that carries the actual resource data between instances.
mutation {
linkComponents(
organizationId: "my-org"
input: {
fromComponentId: "my-project-database"
fromField: "authentication"
fromVersion: "~1.0"
toComponentId: "my-project-app"
toField: "database"
toVersion: "~2.0"
}
) {
result { id fromField toField }
successful
}
}
linkComponents(
organizationId: ID!
input: LinkComponentsInput!
): LinkPayload
Form Schema
This mutation supports dynamic form generation using JSON Schema.
Loading schema...
Arguments
linkComponents.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
linkComponents.input ● LinkComponentsInput! non-null input {#input}
Create a link between two components in a project's blueprint. Links connect an output field on the source component to an input field on the destination component, establishing data flow between infrastructure resources.