API Stability Short-Term

The updateLocalClusterConnection() GraphQL mutation is used to update a cluster connection to a local view.

Syntax

Below is the syntax for the updateLocalClusterConnection() mutation field:

graphql
updateLocalClusterConnection(
      input: UpdateLocalClusterConnectionInput!
   ): LocalClusterConnection!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  updateLocalClusterConnection( input:
    { multiClusterViewName: "my-gang",
      connectionId: "abc123",
      queryPrefix: "the_gang"
    }
  )
 { clusterId }
}
Example Responses
Show:
json
{
  "data": {
    "updateLocalClusterConnection": {
      "clusterId": "def456"
    }
  }
}

Given Datatypes

For UpdateLocalClusterConnectionInput, there are a few parameters. Below is a list of them along with a description of each:

Table: UpdateLocalClusterConnectionInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 23, 2024
connectionIdstringyes  The unique identifier of the connection to update.
multiClusterViewNamestringyes  The name or unique identifier of the multi-cluster view that has the connection.
queryPrefixstring   Filter query that restricts the data visible through this connection.
tagsClusterConnectionInputTagyes  Additional tags that can be used to filter queries. See ClusterConnectionInputTag.
targetViewNamestring   The name or unique identifier of the local view with which to connect.

Returned Datatypes

For LocalClusterConnection, there are several parameters. Below is a list of them along with a description of each:

Table: LocalClusterConnection

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 26, 2025
clusterIdstringyes Short-TermThe cluster identity of the connection.
idstringyes Short-TermThe unique identifier of the connection.
queryPrefixstringyes Short-TermThe cluster connection query prefix.
tagsClusterConnectionTagyes Short-TermThe cluster connection tags. See ClusterConnectionTag.
targetViewIdstringyes Short-TermThe unique identifier of the local view with which to connect.
targetViewNameRepoOrViewNameyes Short-TermThe name of the local view with which to connect. RepoOrViewName is a scalar.
targetViewTypeLocalTargetTypeyes Short-TermThe type of target view. See LocalTargetType.