Found here: nestjs/nest#13401
- Clone this repo
pnpm install
docker-compose up -d
pnpm start:dev
- Open
http://localhost:3000/graphql
in your browser - Make the follow query
query Testing($testingId: Int!) {
testing(id: $testingId) {
exampleField
}
}
With variables:
{
"testingId": 123
}
- Observe error:
[Nest] 14121 - 06/17/2024, 7:08:22 PM ERROR [ExceptionsHandler] Using global EntityManager instance methods for context specific actions is disallowed. If you need to work with the global instance's identity map, use `allowGlobalContext` configuration option or `fork()` instead.
ValidationError: Using global EntityManager instance methods for context specific actions is disallowed. If you need to work with the global instance's identity map, use `allowGlobalContext` configuration option or `fork()` instead.