floatdrop
10/13/2022, 1:02 PMQuery
as property type working? For example this class:
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: https://graphql-rules.com/rules/mutation-payload-queryShane Myrick
10/14/2022, 7:48 PMShane Myrick
10/14/2022, 8:33 PM@GraphQLType
you can now just set the return type to a type reference and this works
https://github.com/ExpediaGroup/graphql-kotlin/discussions/1169#discussioncomment-3882078floatdrop
10/15/2022, 9:21 AM