Skip to content

Conversation

@jdorleans
Copy link
Contributor

@jdorleans jdorleans commented Sep 17, 2017

GraphQL list type representation is too limited to be mapped only to java.unit.List. Instead we should be able to represent probably any java Iterable type. As a result I'm getting the error for models with Iterables types other than List:

class User { addresses: Set<Address> } type User { addresses: [Address] } Exception in thread "main" com.coxautodev.graphql.tools.SchemaClassScannerError: Unable to match type definition (ListType{type=TypeName{name='Address'}}) with java type (java.util.Set<Address>): Java class is not a List: java.util.Set<Address> 
@apottere apottere merged commit bccbb3f into graphql-java-kickstart:master Sep 22, 2017
@apottere
Copy link
Collaborator

Thanks!

@jdorleans jdorleans deleted the hotfix/associate-list-iterable branch April 25, 2018 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants