Hey,
I tried to import the database but had no luck so far.
Here is my config.js file
module.exports = {
secret: 'MY SECRET',
DB_URI_DEV: 'mongodb://localhost:27017/product',
DB_URI: 'mongodb://localhost:27017/product',
};
and in my MongoDB, I have a DB called product and inside I have two collections:
product and admins
but when I call the product API: http://localhost:5000/api/productsdata
I always get an empty array as result, any idea why?
Hey,
I tried to import the database but had no luck so far.
Here is my config.js file
and in my MongoDB, I have a DB called product and inside I have two collections:
product and admins
but when I call the product API: http://localhost:5000/api/productsdata
I always get an empty array as result, any idea why?