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

Syntax

Below is the syntax for setSegmentReplicationFactor():

graphql
setSegmentReplicationFactor(
      segmentReplicationFactor: integer!
   ): integer!

The 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.