Open bbakerman opened 5 years ago
ps. I am one of the maintainers of graphql-java so my server side graphql knowlege is ok but I am trying to work out this as a client side consumer library
Ahh worked it out just after I typed all this
The model classes MUST be public. So
public class Query {
@GraphQLVariable(name = "byName", scalar = "String")
public List<Artist> queryArtists;
}
I was testing out this library via the Spotify test API : https://spotify-graphql-server.herokuapp.com/graphql
The query would be
with variables byName : "Red Hot Chili Peppers"
Debugging shows it sending the right query and data back but it fails to Deserliase into a structure
My code is this
My model classes are
I guess I am unsure about where the entry point for queries are. The samples in the library only every enter a single value field (eg User via github /user) and not a list field like above
Am I off track on how this gets set up?