Error: Returns different types 'Float' and 'Int' #1994
Unanswered
neha-kherde
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a repo for the GraphQL schema which has schema.graphql with the following schema.I am also using dgs-codegen.
From another Java repository I make a graphql call using following code:
when making a graphQL call with graphQLQueryRequest, it returns an error
'value' : returns different types 'Float' and 'Int'","locations"It seems like this is an issue with resolving the type to the correct union type when sending the response - But correct me if I am wrong.
The response is as expected when I mentioned as follows
Any suggestions on what I need to do to fix this error?
Beta Was this translation helpful? Give feedback.
All reactions