Top "Mongodb" questions

MongoDB is a scalable, high-performance, open source, document-oriented NoSQL database.

How to query MongoDB with "like"?

I want to query something with SQL's like query: SELECT * FROM users WHERE name LIKE '%m%' How to …

sql mongodb mongodb-query sql-like
Find objects between two dates MongoDB

I've been playing around storing tweets inside mongodb, each object looks like this: { "_id" : ObjectId("4c02c58de500fe1be1000005"), "…

mongodb datetime twitter mongodb-query
How can I list all collections in the MongoDB shell?

In the MongoDB shell, how do I list all collections for the current database that I'm using?

mongodb mongo-shell
How to get the last N records in mongodb?

I can't find anywhere it has been documented this. By default, the find() operation will get the records from beginning. …

mongodb record
Find document with array that contains a specific value

If I have this schema... person = { name : String, favoriteFoods : Array } ... where the favoriteFoods array is populated with strings. How can …

mongodb mongoose
How do I update/upsert a document in Mongoose?

Perhaps it's the time, perhaps it's me drowning in sparse documentation and not being able to wrap my head around …

javascript mongodb node.js mongoose
How do I drop a MongoDB database from the command line?

What's the easiest way to do this from my bash prompt?

mongodb
Checking if a field contains a string

I'm looking for an operator, which allows me to check, if the value of a field contains a certain string. …

mongodb
How do you query for "is not null" in Mongo?

I would like to execute a following query: db.mycollection.find(HAS IMAGE URL) What should be the correct syntax?

mongodb database nosql
How to secure MongoDB with username and password

I want to set up user name & password authentication for my MongoDB instance, so that any remote access will …

authentication mongodb