mongo-collection Questions

27

Solved

Is there a simple way to do this?
Roderick asked 19/7, 2012 at 5:58

25

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"), "name" : "Swati", "rol...
Lampkin asked 31/8, 2014 at 5:4

11

Solved

After searching around about it, I can't find any solution or mistake in my code about this error. I've got my app.js files inside my node JS application with the mongo-connect declaration : const ...
Amygdala asked 16/3, 2021 at 11:11

8

Solved

I want to clone a MongoDB collection and save it on the same server with a different name. So for example right now I have the following collections: demo1.categories, demo1.users and demo2.users. ...
Distinction asked 19/1, 2012 at 21:8

2

Solved

How do you modify the options that we set on a collection at the time of creation? And how do we view the options already set? If we see the collation option for example, I create a collection lik...
Cota asked 17/2, 2018 at 10:6

4

i want to create collection in mongodb using java.The below is the code i worked with.I can connect to database.But Collection is not happening..please help me import com.mongodb.MongoClient; im...
Amerce asked 6/10, 2014 at 10:45

1

Solved

I have a users table/collection and would like to upsert a user - update a user if exists or add a new one if still not exists. Structure below. By "exists", I mean having some external ID. In thi...
Significance asked 12/12, 2016 at 14:46

1

Here is the problem, I want to capitalise the first letter of a name in my existing database, just wanted to know if there is any query so that i can make it possbile. what i want -- in my d...
Verdieverdigris asked 20/6, 2016 at 10:11

2

Solved

I am using a java program for mongo db insertion trying to create a unique index for a field. product_src is a field in my collection and I want to set it as unique index for avoiding the duplicate...
Barnhill asked 31/12, 2014 at 10:37

1

Solved

I am using mongoDB to store the data of a particular website. Since two of us are working, we are using our own computer for the job. Both the computer has a database website_data and a collection ...
Cryptanalysis asked 17/9, 2015 at 3:47

2

Solved

I need to store a recursive tree structure. A linked list. So all the objects are the same. Each has a pointer to a parent object and each has an array of child objects. Can I store such a structur...
Barrack asked 17/12, 2011 at 21:0
1

© 2022 - 2025 — McMap. All rights reserved.