From 4466a8c9bc8c04bcde38291e96673c9451879b01 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Sun, 15 Feb 2026 08:28:46 +0000 Subject: [PATCH] graphql.lexer: Allow parsing "subscription" in query parser mode Allow parsing subscription queries. Even though graphqld does not support subscriptions itself, this enables other GraphQL libraries which do to use it for lexing and parsing. --- source/graphql/lexer.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/graphql/lexer.d b/source/graphql/lexer.d index 02f4f43..fa2e057 100644 --- a/source/graphql/lexer.d +++ b/source/graphql/lexer.d @@ -180,8 +180,7 @@ struct Lexer { ++this.stringPos; ++this.column; ++e; - if(this.isNotQueryParser() && - this.testStrAndInc!"ubscription"(e)) + if(this.testStrAndInc!"ubscription"(e)) { if(this.isTokenStop()) { this.cur =