? Meteor: query if a string value exists in a field and return a boolean response

How do you check if a particular string value exists in a field in a mongo collection?The standard collection.find returns a cursor however, I am trying to get a true or false response.So I am doing t
 ? Meteor crashes after deploy

I have made a prototype app on my own server, an works great.But when deploying it to meteor.com, I can't get it to work.It was working fine yesterday, but suddenly stopped working.Is there any outage
 ? How to select a single field in MongoDB?

In my MongoDB, I have a student collection with 10 records having fields name and roll. One record of this collection is: { "_id" : ObjectId("53d9feff55d6b4dd1171dd9e"),<br> "name" : "Swat
 ? View child node data in result with mongodb

I m trying to view child node data in mongodbThe query i have written in mongodb is -db.users.aggregate({$unwind: '$social'} , { $project : { name: '$name' ,fb: '$social.facebook' } } );I want to v
 ? View child node data in result with mongodb

I m trying to view child node data in mongodbThe query i have written in mongodb is -db.users.aggregate({$unwind: '$social'} , { $project : { name: '$name' ,fb: '$social.facebook' } } );I want to v
 ? View child node data in result with mongodb

I m trying to view child node data in mongodbThe query i have written in mongodb is -db.users.aggregate({$unwind: '$social'} , { $project : { name: '$name' ,fb: '$social.facebook' } } );I want to v
 ? How to Find MongoDB Documents with the Same Value and Count Them?

In MongoDB, I need to use group aggregation (I believe), in order to get the number of documents in a collection with the same value. I need to get these results returned to me from greatest to least,
 ? How to select where sum of fields is greater than a value in MongoDB

Using MongoDB, How would I write this regular SQL statement?SELECT * FROM table WHERE (field1+field2+field3) > 1I've been messing with $group, $project, $add, etc. I feel like I'm dancing all aroun
 ? How to aggregate time series documents in mongodb

i have a mongo sharded cluster where i save data from a virtual machines monitoring system (zabbix ecc). Now I want to get some information from the db, for example the avg memfree in the last 2 days
 ? MongoDB - aggregate in 2 collection

I have a 2 collections. The first of the collections: 'firmaListesi'{ "_id" : ObjectId("58455d2d506c1cab1c82153c"), "value" : { "firmaid0" : ObjectId("58455d92506c1cab1c82153e"), "
 ? Join two collections on mutiple field using $lookup

Here is my collection:collection1:{ user1: 1, user2: 2, percent: 0.56}collection2:{ user1: 1, user2: 2, percent: 0.3}I want join the two collection by 'user1' and 'user2'.The result
 ? Use $group twice with in a single mongo query and $project result

Below given are the three documents from my mongodb collection,[{ "_id" : "58ad8a35ef2bf403cc4750ff1", "Data" : { "Campaign Name" : "Campaign 1", "Ad Set Name" : "Adset 1.1",
 ? mongodb aggregate query 64 MB limit

I do have a table with more than a billion object like below:{ "_id" : ObjectId("5893ae4f7a5449caebba5848"), "id" : NumberLong(1234567890), "inserted_at" : ISODate("2017-02-02T22:10:23.812Z")
 ? How to match and group in multiple cases in mongodb aggregation?

i have 4 players with there scores in different matches. e.g {user: score} -- json keys{'a': 10}, {'a':12}, {'b':16}I am trying to find out a way in which i can found sum of single player using aggreg
 ? Mongo db: transform a field in a .map .join fashion

Here is a sample collection:[ { id: 1, users: [ {name: 'John Doe'}, {name: 'Ruth Paulson'} ] }, { id: 2, users: [ {name: 'Meg Alosaurus'}, {name: 'Ruth Paulson'} ] }]How do I write a query t
 ? Grouping nested documents

I'm a relative novice with MongoDB and since a couple of days I've been struggling with this issue.I've made a lot of tentatives and read all possible documentation & questions about similar needs

Page 1 of 311  |  Show More Pages:  Top Prev Next Last