Does anybody get `Query` as property type working?...
# graphql-kotlin
Does anybody get
as property type working? For example this class:
Copy code
class MyMutation {
    fun do(): Payload

class Payload {
    lateinit val query: Query
Will not generate schema with error of
Cannot convert com.expediagroup.graphql.server.operations.Query since it is not a valid GraphQL type or outside the supported packages
Yet such schema structure is handy in mutations – when you want to query data right after some mutation resolver:
We had a discussion about this here: But we decided that is was a pattern that actually shouldn’t be implemented:
Update on this, with the addition of
you can now just set the return type to a type reference and this works
Cool, thank you!