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
7
votes
4 answers

How can I connect MongoDB which is running on Kubernetes cluster through UI tools like MongoDB Compass or RoboMongo?

I have multiple instances of MongoDB deployed inside my Kubernetes cluster through Helm packages. They are running as a service, in NodePort. How do I connect to those MongoDB instances through UI tools like MongoDB Compass and RoboMongo from…
Shruthi Bhaskar
  • 1,212
  • 6
  • 20
  • 32
7
votes
1 answer

Aggregate method in MongoDB Compass?

as stated in the title i'm having some problems querying from MongoDB Compass using the aggregate methhod. I have a collection of documents in this…
Andrea Cristiani
  • 351
  • 2
  • 5
  • 13
6
votes
3 answers

MongoDB compass its not exporting all data for collection

while trying to export collection from MongoDB compass it's not exporting all data, it's only export fields that are present in all documents. for eg: if document 1 has { "Name": "Alex", "__v": 0 } and if Document 2 has { "Name":…
Rahul_Mandhane
  • 187
  • 1
  • 11
6
votes
0 answers

$unset specification must be a string or an array

I have documents in this structure: { "_id":{ "$oid":"..." }, "Index":0, "KeyIndex":"...", "SerialNumber":"...", "Tests":[ { "TestName":"...", "Status":"...", "Steps":[ { …
ATT
  • 921
  • 3
  • 13
  • 30
6
votes
1 answer

mongodb import object with numbers as keys results in array

I have a simple .json which I am trying to import: { "data": { "plans": { "1": "14", "2": "20", "3": "40" } } } When I use MongoDB Compass to directly import the json file, the plans object is converted into an…
ionush
  • 323
  • 2
  • 6
  • 12
6
votes
1 answer

MongoDB Compass - Proxy Settings

I want to display my geo-locations on a map but Compass needs access to the internet to load the map. Because of this external connection, I need to change the proxy settings of the program. I couldn't find any information on this in the…
j9dy
  • 2,029
  • 3
  • 25
  • 39
5
votes
1 answer

how to connect to mongodb server via ssh tunnel with Proxy Jump (Bastion Host)

I have an ssh config file like this. I have a proxy jump to host1 from test2. Host host1 Hostname xxxxxx.us-east-1.elb.amazonaws.com Port 2222 User xxxx IdentityFile ~/.ssh/cert StrictHostKeyChecking no UserKnownHostsFile /dev/null …
5
votes
1 answer

How to convert two array into an object in mongoDB where the first array has multiple same values

After some processing with a mongo aggregation, I have a collection like : [{ field1: 10, field2: 50, field3: { name: ["a","b","a","a"], value: [1,2,3,4] } },...] I am struggling finding a way to convert it into…
Vee
  • 297
  • 1
  • 7
5
votes
1 answer

Connecting using MongoDB Compass to docker mongo image

I'm trying to see the contents of a collection using MongoDB Compass. I have username/password authentication set up. I can log in successfully but can't see any documents in the collection. Instead, I see the error: An error occurred while loading…
Rmurad
  • 53
  • 1
  • 4
5
votes
2 answers

MongoDB Compass Community: Databases are visible but their collections are not showing up after authentication

I created a default admin user with the following command in mongoshell: use admin db.createUser( { user: "root", pwd: "root", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] } ) Then I authenticated using the shell and my…
Yassir Khaldi
  • 1,452
  • 1
  • 17
  • 30
5
votes
9 answers

MongoDB Compass connect ECONNREFUSED 127.0.0.1:27017

The default localhost connection refused. Operating System: Windows 7 MongoDB Compass: Version 1.19.12 screenshot
5
votes
8 answers

Server selection timed out after 10000 ms - Cannot connect Compass to mongoDB on localhost

I'm studying about MongoDB and trying to connect Compass to my db on my local pc but keep getting the error "Server selection timed out after 10000 ms" on Compass everytime, here is the log in my terminal : ~$…
Thinh NV
  • 3,182
  • 3
  • 18
  • 17
5
votes
1 answer

Incorrect UTC date in MongoDB Compass

I package my python (flask) application with docker. Within my app I'm generating UTC date with datetime library using datetime.utcnow(). Unfortunately, when I inspect saved data with MongoDB Compass the UTC date is offset two hours (to my local…
Lukasz Dynowski
  • 11,169
  • 9
  • 81
  • 124
4
votes
1 answer

MongoDB Compass: display binary type 3 guid

I have a python software that inserts uuids in a mongo database using this code: class User(mongoengine.Document): id = mongoengine.UUIDField(primary_key=True, required=True, default=lambda: str(uuid.uuid4())) In MongoDB Compass, it is shown…
Kiruahxh
  • 1,276
  • 13
  • 30
4
votes
2 answers

Server at 10.70.152.26:27017 reports maximum wire version 4, but this version of the Node.js Driver requires at least 6 (MongoDB 3.6)

When I connect to mongodb using a url, I get the error: Server at 10.70.152.26:27017 reports maximum wire version 4, but this version of the Node.js Driver requires at least 6 (MongoDB 3.6)
Sukma Wijaya
  • 49
  • 1
  • 1
  • 4
1 2
3
31 32