sample-proxies/graphql-sample/graphql-proxy/apiproxy/resources/jsc/graphql.jsc.js
/**
     * OperationType : one of query mutation subscription
     */
OperationType : one of query mutation subscription
OperationType : one of query mutation subscription
function parseOperationType(lexer) {
      var operationToken = expect(lexer, TokenKind.NAME);
      switch (operationToken.value) {
        case 'query':
          return 'query';
        case 'mutation':
          return 'mutation';
        case 'subscription':
          return 'subscription';
      }
      throw unexpected(lexer, operationToken);
    }
function parseOperationType ( lexer ) { var operationToken = expect ( lexer , TokenKind . NAME ) ; switch ( operationToken . value ) { case 'query' : return 'query' ; case 'mutation' : return 'mutation' ; case 'subscription' : return 'subscription' ; } throw unexpected ( lexer , operationToken ) ; }
OperationType : one of query mutation subscription
OperationType : one of query mutation subscription