API Stability Short-Term

The setSegmentReplicationFactor() GraphQL mutation is used to set the segment replication factor.

Syntax

Below is the syntax for setSegmentReplicationFactor():

graphql
setSegmentReplicationFactor(
      segmentReplicationFactor: integer!
   ): integer!

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

Show:
graphql
mutation {
  setSegmentReplicationFactor(
       segmentReplicationFactor: 10
  )
}
Example Responses
Show:
json
{
  "data": {
    "setSegmentReplicationFactor": 10
  }
}

This mutation field has no special datatypes. It uses integer for both the input and the return datatype. For the given data, enter the replication factor for segment storage.