Closed matheusriios closed 3 years ago
Same issue, the error only show up when I'm executing a GraphQL query/mutation from a resolver but there was no error on build/compilation time.
I solved the problem temporarily by changing my TypeORM connection name to default
. It seems that useConnection is defaulted to check with the connection name of default
.
The error says it, you attempt to access the connection before you create in TypeORM via calling createConnection
. Closing this issue as solved. If your issue still persists please open a new issue with a minimal, reproducible example.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
My index.ts