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

Boot springboot app even if mongodb is down

I am using SpringBoot v2.7.0 I have following springboot config spring: data: mongodb: uri: ${MONGO_DB_URL} database: ${MONGO_DB_DATABASE} There is not explicit beans configurations. I have repositories for respective documents which extends MongoRepository<ModelNameClass, IDType> This is all working fine. But now…

VIEW QUESTION
Back To Top
Search