Closed gjvoosten closed 1 year ago
Hello,
I have integration that test that. Can you show here the request you use ?
From the error stacktrace, your query contains an 'args' parameter, for witch you don't provide a value at execution time.
Etienne
Not sure I understand your question. The only aspect in which the standard introspection query from graphql-java has changed between v18.3 and v.19.2 is:
diff --git a/src/main/java/graphql/introspection/IntrospectionQuery.java b/src/main/java/graphql/introspection/IntrospectionQuery.java
index a2a9b179..f9361795 100644
--- a/src/main/java/graphql/introspection/IntrospectionQuery.java
+++ b/src/main/java/graphql/introspection/IntrospectionQuery.java
@@ -18,7 +18,7 @@ public interface IntrospectionQuery {
" name\n" +
" description\n" +
" locations\n" +
- " args {\n" +
+ " args(includeDeprecated: true) {\n" +
" ...InputValue\n" +
" }\n" +
" isRepeatable\n" +
@@ -33,7 +33,7 @@ public interface IntrospectionQuery {
" fields(includeDeprecated: true) {\n" +
" name\n" +
" description\n" +
- " args {\n" +
+ " args(includeDeprecated: true) {\n" +
" ...InputValue\n" +
" }\n" +
" type {\n" +
which appears to be exactly what the error is about. What should I be doing differently, other than trying to send this introspection query through graphql-java-generator to my server?
[Please note: I can actually send this query to my server and receive a full response, e.g. with GraphiQL; it's just graphql-java-generator that complains about it.]
Ok, understood. I answered to quickly, just based on the error message.
I added an IT test to check that.
Released in the 1.18.10 version
I can confirm that this issue is indeed solved with release 1.18.10; thanks @etienne-sf !
When using the standard introspection query from graphql-java: https://github.com/graphql-java/graphql-java/blob/v19.2/src/main/java/graphql/introspection/IntrospectionQuery.java#L8 I get a stacktrace: