Skip to content

Need some help with DB setup #6

Description

@zsydyc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions