Top "Mongodb-query" questions

This tag is for questions related to querying and updating MongoDB collections, either through the mongo shell or using a programming language driver.

Multiple Counts with single query in mongodb

I am new to Mongo Db and would appreciate some help with this query. I have been sifting through posts …

mongodb mongodb-query aggregation-framework
How to search a document and remove field from it in mongodb using java?

I have a device collection. { "_id" : "10-100-5675234", "_type" : "Device", "alias" : "new Alias name", "claimCode" : "FG755DF8N", "hardwareId" : "SERAIL02", "…

java mongodb mongodb-query mongo-java-driver
Mongoose Populate after Aggregate

I am trying to get a specific data model after I run an aggregate pipeline followed by populate but I …

mongodb mongoose mongodb-query aggregation-framework mongoose-populate
how to solve the error reading database : not authorized in mongo DB

am using Mongo DB version 3.4 and I have a user in DB C:\Program Files\MongoDB\Server\3.4\bin>mongo …

mongodb mongodb-query mongorestore
MongoDB $lookup not using index

I'm writing a query that requires a $lookup between two tables and as I understand it, it's essential that the …

mongodb mongodb-query aggregation-framework mongodb-shell
Mongo regex for "not match" or inverse

My mongo documents all contain a field called templateName. There are a few documents that contain the value: a_SystemDefaultTemplate, …

regex mongodb mongodb-query regex-negation
How can I see raw mongoDB queries with Mongoid

I followed this page to see mongoDB queries. As a result I could see Moped log. But I can't see …

ruby-on-rails mongoid mongodb-query
MongoWaitQueueFullException: The wait queue for acquiring a connection to server is full

Sometimes when inserting a small bunch of different document (synchronously), I get the following exception (see full stack trace further …

mongodb mongodb-query mongodb-.net-driver
Efficient paging in MongoDB using mgo

I've searched and found no Go solution to the problem, not with or without using mgo.v2, not on StackOverflow …

mongodb go pagination mongodb-query mgo
mongodb aggregation framework group by two fields

I'm querying my database using aggregation and pipeline, with two separate queries: $groups_q = array( '$group' => array( '_…

php codeigniter mongodb mongodb-php mongodb-query