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
1 answer

Replace all instances of "null" with null

After importing data into mongo, fields that were supposed to be of type null ended up being strings "null", is there a command or query to replace all instances of that string with a null value? I have something like this TestModel.updateMany({…
0
votes
1 answer

Couldnt connect to mongo atlas from the mongo shell, mongo compass and go mgo Driver

I'm trying to connect mongo shell with my mongo atlas M0 cluster and ending up getting this error Error Message Solution I tried which didnt work: I upgraded the monog version to 4.2 to be insync with mongo version in atlas, didnt solve the problem…
0
votes
0 answers

Storing data as object vs array in Mongodb

I'm wondering which is better practice when storing large amounts of unique data in mongoDB. In my collection, each document has a key called shapes, which holds a series of shapes (up to possibly thousands) that each have their own properties like…
Modermo
  • 1,852
  • 2
  • 25
  • 46
0
votes
1 answer

Unable to search for a specific date inside mongodb using MongoDB Compass

I have the following document entry: { "_id": { "$oid": "5f0f876df0127d7d1612139c" }, "stream": [{ "$numberLong": "1594638000000" }, 8213.9, 8224, 8213.8, 8224, 18.1126896], "asset": "BTC/EUR", "timeframe":…
mbilyanov
  • 2,315
  • 4
  • 29
  • 49
0
votes
1 answer

Sending requests from Postman to Heroku returns 503 and/or UnknownReplWriteConcern

I am trying to send a post request from Postman to a Heroku app but it keeps returning a 503 status error with code = H12. The app works fine in localhost. With regards to the database, I have a cluster (M0) in Atlas and I am using the same non-srv…
AndrewL64
  • 15,794
  • 8
  • 47
  • 79
0
votes
1 answer

Compass - Unable to connect to any MongoDB Atlas database using compass or otherwise

I have been trying to connect to Atlas using the university.mongodb.com connection string: mongodb+srv://m001-student:m001-mongodb-basics@cluster0-jxeqq.mongodb.net/test But the compass GUI gives the following error: queryTxt ETIMEOUT…
nwillo
  • 1,204
  • 9
  • 9
0
votes
0 answers

Using partitions (window functions) in combination with aggregations in MongoDB

In MongoDB I have documents like below (I cross the names of calls for confidentiality): Now I need to build a query to return results grouped by the name of the call and for each type of call I need to get the number of calls by month, day and…
Willy
  • 9,848
  • 22
  • 141
  • 284
0
votes
1 answer

Connect MongoDB compass client to the mongodb database inside kubernetes cluster

I am running a mongo docker container service inside a kubernetes cluster. Incoming traffic from outside is routed via ingress-nginx (https://kubernetes.github.io/ingress-nginx/) load balancer to the mongo docker container service. Application is…
Shanka Somasiri
  • 581
  • 1
  • 8
  • 30
0
votes
1 answer

I am getting an error when trying to import a JSON file to MongoDB via Compass

I am on Windows 10. I recently obtained a large JSON file (200 MB) via webscraping, and I am now trying to import the file to MongoDB using Compass Community via the import data button. However, whenever I try to import the file, I get the following…
0
votes
1 answer

How to migrate from MongoDB Compass Community version?

I am new to MongoDB and installed MongoDB Compass Community version while installing MongoDB. I would like to migrate from Compass Community to Compass. I am having some hard time to follow the steps. The compass version is DMG file, I converted…
Rosh
  • 3
  • 1
0
votes
1 answer

Why Index usage increment (by 2) on every refresh in MongoDB Compass

Setup: I'm doing local desktop development, trying out MongoDB Compass query within Documents' tab. Created an index on a field, and querying WITHOUT the index field increments the '_id' index usage, this is fine. With every query WITH the index…
EugeneO
  • 1
  • 1
0
votes
1 answer

MongoDB Compass throws error: Update not permitted

I am taking online class by MongoDB uni. and using a test free tier cluster. I have created a very simple collection with basic fields. Creation was successful. 5 documents. Each document has basic 8 fields as can be seen in the screenshot. The…
harige
  • 1
  • 1
0
votes
1 answer

How to show an image in MongoDB Compass

I wonder if there is a way to show an image in MongoDB Compass. I have this document: Last field, is a binary, which represents an image. What I need is to show the image inside the Compass.
Jose Rondon
  • 370
  • 2
  • 6
  • 13
0
votes
3 answers

MongoDB compass stalls on "activating plugins" screen

Just installed version 1.21.1 and on initial start-up it stalls on this screen with the following error in the console loading.js:29 Error: spawnSync wmic UNKNOWN at Object.spawnSync (internal/child_process.js:1041:20) at Object.spawnSync…
0
votes
1 answer

Mongodb Compass connecting to local database not to remote database which is running locally on a EC2 Instance

I am connecting to the mongodb database running locally on ec2 instance via ssh by using ssh identity file provided by aws. I have provided all the necessary fields while connecting to the remote database running on aws ec2 server locally. But it is…