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
15
votes
2 answers

How to open a Mongo Atlas backup snapshot locally?

I've enabled automatic backups on Mongo Atlas. Now I need to view and query a specific snapshot to check some documents? How can I do it quickly and safely?
rzymek
  • 9,064
  • 2
  • 45
  • 59
15
votes
1 answer

MongoDB Compass displaying documents 20 limit

I want to able Compass show more than 20 documents per 'page' e.g. 1-100 of 400 Screen of problem: Already tried: View more than 20 most recent documents in MongoDB Compass from Schema I don't need to limit all results How to print out more than…
Mega Proger
  • 371
  • 4
  • 10
14
votes
3 answers

How to delete selected multiple records in a collection in MongoDB using MongoDB compass

I'm very new to MongoDB and MongoDB Compass. I have some 1000 records in a customer collection. How I can delete all the records at once through MongoDB compass. Many Thanks,
anil
  • 413
  • 2
  • 5
  • 17
14
votes
3 answers

MongoDB Compass - How To Insert Date Type?

When inserting a document into a MongoDB database with MongoDB Compass how do I insert the current date? I have tried like so: But as you can see there is an error. How do I insert the current date using MongoDB Compass?
BugHunterUK
  • 8,346
  • 16
  • 65
  • 121
13
votes
1 answer

Not able to connect MongoDB Compass

I am not able to connect my server in MongoDB Compass. I am trying to connect by identity file. I am providing hostname username and file. I got: 'Error creating SSH Tunnel: Timed out while waiting for forwardOut' What does it mean?
MongoUser
  • 131
  • 1
  • 4
12
votes
3 answers

Mongodb Compass export data with sort

I am able to sort data in compass, but my problem is when I export, I don't get it sorted and I can't find where can I apply sort upon exporting data? As you can see here I am filtering with {name: 'SelectedProduct'} and I am sorting with {name:…
Ali Elkhateeb
  • 3,413
  • 4
  • 21
  • 39
11
votes
6 answers

Connecting using MongoDB Compass

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…
11
votes
1 answer

View more than 20 most recent documents in MongoDB Compass from Schema

I want to be able to edit some documents in my Mongo DB from compass, but a query only shows 20 of the most recent results. How can I view more than that 20? Or at least view the next 20?
rlou
  • 498
  • 4
  • 16
10
votes
3 answers

MongoDB Compass: Current topology does not support sessions

All of a sudden I am getting an error - 'Current topology does not support sessions' on MongoDB Compass. I have never seen this before on MongoDB Compass!!! Below are the details on version/server MongoDB Compass Version: 1.29.5 (1.29.5) MongoDB…
iravinandan
  • 659
  • 6
  • 16
10
votes
7 answers

No AuthProvider for DEFAULT defined

My MongoDB Compass has updated to version 1.28.1 and now I can't connect to my mongo host. The error is No AuthProvider for DEFAULT defined. I don't use authentication, so my connection string is without username and password. How to fix the…
Vasli Slavik
  • 309
  • 2
  • 4
  • 11
10
votes
3 answers

View last N documents using MongoDB Compass

I wish to view in MongoDB Compass the last N documents in a very large collection; too many to scroll through. I could .skip(total - N) if I knew the syntax for that within Compass. Alternatively, I have a date field and could use $gte with a date…
koan911
  • 360
  • 1
  • 3
  • 13
9
votes
5 answers

Mongodb compass keeps on showing activating plugin

When I open my MongoDB compass it keeps on showing loading, My os is windows 10, Please help me to sort out the issue
VishnuKumar ps
  • 129
  • 4
  • 8
8
votes
2 answers

mongodb compass query with objectId in date range

I'm trying to perform a date range query on the _id field using compass. I've tried what I found here with the following filter: {_id: { $gte: ObjectId.fromDate(new Date('2019-01-01')) } } What am I missing? I'd like to get a list of all documents…
geco17
  • 5,152
  • 3
  • 21
  • 38
7
votes
1 answer

Is it possible to add a field to every document in a collection in MongoDB Compass?

Is it possible to add a field to every document in a collection in MongoDB Compass? Or is this something that has to be done in the shell?
redwytnblak
  • 143
  • 1
  • 1
  • 10
7
votes
1 answer

regex options /i, etc not working in MongoDB Compass

This question is related to MongoDB Compass Community Version 1.17.0. Code { location: /IL$|US$/i } (with regex options) works with the Documents Filter tool, but with the Aggregations $match pipeline stage the application says Expected "[" or…
Vladimir
  • 145
  • 2
  • 8
1
2
3
31 32