Good article, but I think your CustomerRepository, although registered as Transient, is being pulled up to be a Singleton by virtue of being injected into the Singleton CustomerQuery.

I ended up here as I'm trying to move from a Scoped Schema to a Singleton Schema but I'm having problems defining Scoped dependencies for the resolvers per request.

--

--

Freelance Engineer, Architect, Problem Solver etc. https://twitter.com/acraven_dev

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store