Resolve minification issues.

This commit is contained in:
2025-05-23 20:56:01 +01:00
parent 5136a5869b
commit 240929a808
9 changed files with 592 additions and 23 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ func (suite *QueryOptimizationTestSuite) TestDoubleCompilationFix() {
// This should not cause double compilation
compiledQuery := suite.client.compileQuery(query, variables)
suite.NotNil(compiledQuery)
suite.Equal(query, compiledQuery.Query)
suite.Equal("query GetUser($id: ID!){user(id: $id){id name}}", compiledQuery.Query)
// Variables should still contain the flags at this point (they're cleaned in Query method)
suite.Contains(compiledQuery.Variables, "gqlcache")