i was facing same issue, but in my case i was papulating the 'user' object in the requests collection, so i had to import the usermodal , in the api of the next js , like in route.js file, code image