DEV Community

loading...

Discussion on: [SOLVED] How I use a synchronous queries with mongoose on NodeJS with ExpressJS

Collapse
theodesp profile image
Theofanis Despoudis

‘getProductCount’ is a function. You need to call it

Collapse
sma profile image
sm-a Author

Thank you. You have right I do not executing the function. Now it works.