B
B
billt2017-08-04 21:53:21
JavaScript
billt, 2017-08-04 21:53:21

Why does mongoose show an empty collection?

Hi, I have added 3 objects to mongo via shall. Through the node using mongoose I try to get these objects, but mongoose shows that collections is empty.
Here is a screenshot of mongo:
ece7ee3f7da0415cbde968fb59e125cb.png
And here is mongus:
00b288e7ff784e32b8cf7feb3ae7ac9b.png
app.js:
ddf7c327f1e347e58acc1cbfd7668a17.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Coder321, 2017-08-05
@Coder321

Have you tried creating a mongoose model?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question