Skip to content

Tag: postman

TypeError: Order.find is not a function

I am building ecommerce website using MERN stack. And I am getting error while testing using Postman. backend/controllers/user.js backend/models/Order.js backend/models/User.js backend/routes/user.js Error:- TypeError: Order.find is not a function at exports.userPurchaseList (C:UsersRahulMernBootcampprojbacke…

Why can’t I add a simple reusable function to Postman?

In Postman, I’m trying to achieve the following: In a collection: Create a utility object containing reusable functions Store that utility object in a global variable for later use in request test scripts. In a request: Pull the utility object code out of the global variables. Eval the code and store th…