skip to Main Content

Mongodb – Mongoose Filter Not Working With Find Method

I am writing code with node.js and mongoose module. My used module is "find" method but mongo is getting all data to me so filter is not working. What is problem ? Example Codes: const mongoose = require('mongoose') mongoose.connect('mongodb://localhost:27017/nodeV1').then(res=>console.log("Connection Success")).catch(e=>console.log("Error"))…

VIEW QUESTION
Back To Top
Search