Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged MongoDB

0 votes
1.1k views
1 answer
    My schema looks like this: "content" : [ { "_id" : ObjectId("4fc63de85b20fb72290000f8"), "assets" : [ { " ... collection by its id. Any ideas? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
852 views
1 answer
    I'm testing Meteor examples and this is what I see when I run meteor in todos examples: Unexpected mongo ... port 28017 Someone helps? Thanks! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
952 views
1 answer
    I have a mongodb collection like: db.kids.find() //results [ {name:'tom', age:10}, {name:'alice', age:12 ... : SELECT MAX(age) FROM kids WHERE 1 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
975 views
1 answer
    I have a MongoDB whom store the date objects in UTC. Well, I want to perform aggregation by year,month day in a ... ', this is a different day. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
824 views
1 answer
    I have installed MongoDB on my Windows 7 (64 bit) machine. I have created the path data/db too but when I ... any GUI is available for MongoDB. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I would like to execute a following query: db.mycollection.find(HAS IMAGE URL) What should be the correct syntax? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    My data layer uses Mongo aggregation a decent amount, and on average, queries are taking 500-650ms to return. I am ... expect it to be this bad. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have a Mongo collection of messages that looks like this: { 'recipients': [], 'unRead': [], 'content ... whether they fit a certain criteria? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
843 views
1 answer
    I have an employee collection with half a million records. Each record will have the following details. The mongo ... filter on top of this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
968 views
1 answer
    here is the query [ { "$project": { "formattedDate": { "$dateToString": { "format": "%Y-%m-%d", "date": ... date in timestamp. How to do that? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
669 views
1 answer
    In the Discover Meteor examples, what's the diff between "posts" and "Posts"? Why is it that when we do an ... we now using Posts in the server? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I am getting an issue for running the following aggregate query: db.snippets.aggregate([ { '$project': { month: ... how to get things done. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
839 views
1 answer
    This is my document: { title:"Happy thanksgiving", body: "come over for dinner", blocked:[ {user:333, name:' ... not have user 11 in "blocked"? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
857 views
1 answer
    For example, there is a collection like this: {market: 'SH', code: '000001', date: '2012-01-01 ... efficient way to implement multikey distinct? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
780 views
1 answer
    Everything I can find for rending a page with mongoose results says to do it like this: users.find({}, function(err, ... }); Can this be done? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
967 views
1 answer
    Is there a query for calculating how many distinct values a field contains in DB. f.e I have a field for ... easier way then group and count? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
973 views
1 answer
    Let's assume I have a collection with documents with a ratio attribute that is a floating point number. {'ratio':1 ... value of abs(x-ratio)? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
947 views
1 answer
    My daily collection has documents like: .. { "date" : ISODate("2013-01-03T00:00:00Z"), "vid" : "ED", "san ... . How do I do that? Thank you See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    How to use dot in field name ? I see error in example: db.test2.insert({ "a.a" : "b" }) can't have . in field names [a.a] See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I found the following script: Device.find(function(err, devices) { devices.forEach(function(device) { device.cid = ''; device ... ) { //... }); See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
888 views
1 answer
    var mongo = require('mongoose'); var connection = mongo.createConnection('mongodb://127.0.0.1/test'); ... confirmed that MongoDb is running. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
946 views
1 answer
    In the following example, "Algorithms in C++" is present twice. The $unset modifier can remove a particular field but ... "name" : "robert" } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
734 views
1 answer
    Can i combine $pushAll and $inc in one statement ? Before combine, this works fine : db.createCollection("test"); ... the array is the problem. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
804 views
1 answer
    I have a list of mongo '_id' which I want to delete. Currently I am doing this # inactive_users --> list ... query again and again. Thank you See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
977 views
1 answer
    I have a process that returns a list of String MongoDB ids, [512d5793abb900bf3e20d012, 512d5793abb900bf3e20d011] And I ... notation to do this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am new to mongodb and want to know about importing a json file from one server to another. I tried the ... help me is this possible and how See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    I currently have some ids stored in Mongo as UUIDs (necessary for processing). They get returned like this: ... actual UUID from Mongo quickly. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...