Fix Bug in Backend Nest Js

Job ID: 39959863

Budget: ₹1,500 – ₹12,500 INR

In the NestJS backend, when calling the GET /users/:id endpoint, the API intermittently throws a 500 Internal Server Error. This happens only when the user has related entities (e.g., posts or comments) loaded via TypeORM relations.

The same endpoint works fine when the user has no related data.
Related categories: Node.js RESTful MongoDB Nest.js