Skip to content

Commit

Permalink
Remove notes about subscription being experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed Nov 30, 2017
1 parent 7242137 commit bf4a25a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/language/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ export type OperationDefinitionNode = {
selectionSet: SelectionSetNode;
};

// Note: subscription is an experimental non-spec addition.
export type OperationTypeNode = 'query' | 'mutation' | 'subscription';

export type VariableDefinitionNode = {
Expand Down
2 changes: 0 additions & 2 deletions src/language/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ function parseDefinition(lexer: Lexer<*>): DefinitionNode {

if (peek(lexer, TokenKind.NAME)) {
switch (lexer.token.value) {
// Note: subscription is an experimental non-spec addition.
case 'query':
case 'mutation':
case 'subscription':
Expand Down Expand Up @@ -304,7 +303,6 @@ function parseOperationType(lexer: Lexer<*>): OperationTypeNode {
switch (operationToken.value) {
case 'query': return 'query';
case 'mutation': return 'mutation';
// Note: subscription is an experimental non-spec addition.
case 'subscription': return 'subscription';
}

Expand Down

0 comments on commit bf4a25a

Please sign in to comment.