rootKey static method

String rootKey(
  1. String operation
)

Implementation

static String rootKey(String operation) => switch (operation) {
  // Constant for the three operations: `read` runs this on every getter.
  'query' => 'ROOT_QUERY',
  'mutation' => 'ROOT_MUTATION',
  'subscription' => 'ROOT_SUBSCRIPTION',
  _ => 'ROOT_${operation.toUpperCase()}',
};