https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
h

Henrik Friedrichsen

10/18/2021, 7:29 AM
Hi there, I was wondering, do you already have any plans on how to deal with the
GraphQLContext
changes in
graphql-java
? Will
graphql-kotlin
simply use graphql-java’s
GraphQLContext
as passing custom object definitions seems to be deprecated?
d

Dariusz Kuc

10/18/2021, 2:12 PM
👋 we will upgrade to the new mechanism but we are waiting for the GA of the
graphql-spring
to determine whether to adopt it (which will most likely require additional changes)
we currently don't have any ETA on the gql context update
h

Henrik Friedrichsen

10/18/2021, 2:38 PM
Got it, thanks for clarifying 🙂
Hmm, I’m currently trying to migrate our projects to the new
GraphQLContext
object, but since
GraphQLContext
is part of graphql-java, there is no way to apply the marker interface in graphql-kotlin. Should the schema generator maybe also ignore graphql-java’s
GraphQLKotlin
by default as an intermediate?
d

Dariusz Kuc

10/21/2021, 9:57 PM
we haven't looked into the required updates
updating generator is one thing, another would be also updating the default data fetchers to resolve the arguments and yet another thing on how to populate it
we are always open to contributions 😉
You can also use data fetching env to get the context object (which should already be supported)
1
h

Henrik Friedrichsen

10/22/2021, 8:42 AM
Sure, will definitely submit a PR if I come up with a good approach 😉 Thanks for the data fetching env suggestion.