Skip to content

maxkomarychev/micronaut-graphql-kotlin-request-scope

Repository files navigation

dataloaders

This is an example repository showing problems of using @RequestScope with Micronaut and graphql-kotlin

TL;DR

  1. start the server
  2. run the query:
    query MyQuery {
      authors {
        id
      }
    }
  3. observe result returned
  4. change the query to:
    query MyQuery {
      books {
        id
        author {
          id
        }
      }
    }
  5. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages