This is an example repository showing problems of using @RequestScope
with Micronaut and graphql-kotlin
TL;DR
- start the server
- run the query:
query MyQuery { authors { id } }
- observe result returned
- change the query to:
query MyQuery { books { id author { id } } }
- Observe: request fails with error
Exception while fetching data (/books[1]/author) : No request present
Initial debugging shows problems with using @RequestScope when accessing calling
field resolvers on >2 level of the query.