Filip Lastic
05/02/2022, 5:05 PMwillResolveMonad
for relay api? From the example, I understand that it will generate the type of second argument (type.arguments.firstOrNull()?.type
).
But that will for Connection<MyObj>
generate only MyObj
entity in graphql schema which I don't want. Maybe I don't understand schema hooks correctly. But it is somehow possible to generate ...Connection
class for each entity in my graphql server supporting relay? All my objects use DefaultConnection
from GraphQL Java https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/relay/DefaultConnection.java#L15
I also found Relay()
class which has some GraphQLObjectType implementations, but I am not sure how to use it in graphql kotlin library -> https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/relay/Relay.java#L160