Questions tagged [mongodb-compass]

MongoDB Compass is MongoDB’s own GUI tool for database management, visualization, and CRUD operations. It supports the latest MongoDB versions and is available on Linux, Mac, or Windows. mongodb-compass tag should be used when posting questions related to this tool.

The GUI for MongoDB. Visually explore your data. Run ad hoc queries in seconds. Interact with your data with full CRUD functionality. View and optimize your query performance. Available on Linux, Mac, or Windows. Compass empowers you to make smarter decisions about indexing, document validation, and more.


Development:

All versions of MongoDB Compass are source available and free to use. You can find the source repositories for MongoDB Compass at https://github.com/mongodb-js/compass/.

Running Compass locally requires Node.js and npm:

  • Node.js: ^12.4.0
  • npm: >=6.13.0
npm install
npm start [compass|compass-readonly|compass-isolated]

For issues, create a ticket in JIRA Project.

Is there anything else you’d like to see in Compass? Submit suggestions in our feedback forum.

478 questions
0
votes
0 answers

Connect local MongoDB using static public IP from Mongo Compass

I have installed MongoDB and created a Database from the command line. and connected to Mongo Compas using Hostname local and port 27017. But If am trying to connect using my Public Static IP, it gives an error. How to connect using my public IP.?
Meet Patel
  • 19
  • 7
0
votes
2 answers

Why do we need an additional LIMIT stage with compound index in Mongo

I am using Mongo 4.2 (stuck with this) and have a collection say "product_data" with documents with the following schema: _id:"2lgy_itmep53vy" uIdHash:"2lgys2yxouhug5xj3ms45mluxw5hsweu" userTS:1494055844000 Case 1: With this, I have the following…
Naman
  • 27,789
  • 26
  • 218
  • 353
0
votes
1 answer

How to export smaller collection in MongoDB (big data)? Aggregations time out! (any big data help MUCH appreciated!)

This is my first time making an account on Stackoverflow so I apologise if what I am asking is really straightforward. What I want to do: I have a 14 million documents database of twitter data I wish to analyse. I am trying to query only those that…
0
votes
1 answer

i can not install mongodb compass in raspbian

I have a problem running MongoDb Compass in raspbian. When I run mongodb compass.raspbian I get the following error: bash: /usr/bin/mongodb-compass: cannot execute binary file: Exec format error So anybody can help me to resolve this problem or to…
Mehdi
  • 5
  • 3
0
votes
2 answers

Mongo db : data uploaded using CSV has Null stored as String in Mongo document

I tried uploading data into Mongodb using CSV from Mongodb Compass. In the CSV, some of the fields have Null values stored in them. But, after uploading those fields in Mongo, documents have "Null" stored as String. Is there a way to store Null…
Avani Khabiya
  • 1,207
  • 2
  • 15
  • 34
0
votes
0 answers

Recovering Mongodb collections and documents data

good day to you all. I am currently having a hard time restoring the MongoDB database. Here is what happened. Thanks for looking into this matter Basically, my server and MongoDB 3.2 server running on DigitalOcean. I made some changes on mongod.conf…
CHRIS LEE
  • 776
  • 3
  • 10
  • 20
0
votes
2 answers

Mongo Compass 1.24.1 force replicaset topology discovery on connection

While creating new connection on Mongo Compass the UI try to discover the entire replica set topology and connect to the primary/secondary IP. Is there a way to create a DIRECT connection to an HOST/IP+Port just like the clients api and disable the…
Ran S
  • 105
  • 9
0
votes
0 answers

Why does Mongo Compass give me the error "$add only supports numeric or date types, not string" when I'm not using `$add`

I'm getting a bizarre error in Mongo Compass (v1.2.1) with Mongo version 4.2.8 I have a simple aggregation pipeline step that compares a date and checks an equality. However I get an unexplainable error saying: "$add only supports numeric or date…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
0
votes
0 answers

Dynamic mongodb operation

I'm trying to get all documents that their health is less than their maxHealth but I don't find any success and I don't find any information online, please assist. This is the code I used /** * query: The query in MQL. */ { health: { $lt:…
Asaf
  • 949
  • 2
  • 13
  • 14
0
votes
1 answer

MongoDB map-filter with nested arrays not working as expected

I have documents having the following schema: [ { "documentKey": "documentData", "functions": [ { "name": "firstFunction", "outerArray": ["elements", "in", "the", "array"], "objectsToBeFiltered": [ …
0
votes
1 answer

Import JSON to MongoDB with Compass MongoDB

I'm using Compass MongoDB to connect to my MongoDB Atlas. I want to import json collection. When I hit import it says "Done" but nothing is happening. What could be the problem? My json collection is an array of objects:
Dvdgld
  • 1,984
  • 2
  • 15
  • 41
0
votes
1 answer

Can't connect to MongoDB Compass with provided connection string

I have created a cluster and would like to access it with MongoDB Compass. Via Connect -> I have MongoDB Compass I get the following connection string: mongodb+srv://myname:@myname.nauqp.mongodb.net/dws When I enter this string in MongoDB…
Codehan25
  • 2,704
  • 10
  • 47
  • 94
0
votes
1 answer

Trying to get Mongo Compass working on CENTOS 7

Attempting to install and run Mongo Compass on two separate CENTOS 7 laptops, and it doesn't work in either one. Problem Description: Downloaded the Mongo Compass RPM for Red Hat 7 here: https://www.mongodb.com/try/download/compass Installed it…
generic3892372
  • 174
  • 1
  • 3
  • 14
0
votes
1 answer

MongoDB Compass - document does not show field with Object ID referenced (Ref) from another collection

In MongoDB, I have a field in a document that looks as shown below: curOrg: { type: mongoose.Schema.Types.ObjectId, ref: "Org" }, This field is present and works as expected in my code, however, if I open the MongoDB Compass, the field is not…
0
votes
1 answer

MongoDB compass keeeps initializing after installing

After downloading and installing MongoDB compass to the PC it keeps initializing as shown in the image. Is it a common issue, or should I do any changes?enter image description here