I faced the same issue where req.body was not set, and the console was showing a 500 Internal Server Error. After investigating, I found that the key issue was a version mismatch — Apollo Server Express expects Express 4.x, but I had Express 5.x installed. This caused a dependency conflict and broke the request handling. To fix it, I first uninstalled the current version of Express using npm uninstall express, then installed a compatible version with npm install [email protected]. After that, I made sure the required Apollo Server packages were installed by running npm install @apollo/server graphql. Once everything was set up correctly, the error was resolved and the server started working as expected.