graphql-java-tools icon indicating copy to clipboard operation
graphql-java-tools copied to clipboard

Nested Input type object need a direct usage to be registered correctly

Open fvigotti opened this issue 6 years ago • 2 comments

with version 5.5.1 this doesn't work ( error during graphql service registration )

input A {
 v :Int
}
input B {
 a : A
}

type Query {
 q1 (b: B ) : Int 
}

seems that A is not usabe as nested input object if hasn't been called directly by some method in the graphql interface

this WORKS instead.. ( the dumb ) method seems to be required to register A as input type which is required by B... seems a bug in the library to me.. , the previously schema didn't worked neither with A as normal type


input A {
 v :Int
}
input B {
 a : A
}

type Query {
  q1 (b: B ) : Int 
  dumb(a:A):Int 
}

fvigotti avatar Apr 23 '19 15:04 fvigotti

Related to #261

vojtapol avatar Feb 04 '20 14:02 vojtapol

This is a major bug, is anyone looking into this or is there an ETA?

shahmalhar avatar Mar 24 '20 04:03 shahmalhar