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

MongoDB Compass export just collection fields in schema

Basically what I want is to export my collections field into JSON. I just need to get the all the fields the collection has and their type if possible. Now I get too much information. I do not need the probability of the fields, the uniqueness…
Marius
  • 537
  • 1
  • 6
  • 23
0
votes
1 answer

Can start MongoDB properly on Mac

I wasn't able to start MongoDB on my new Mac properly.. I installed everything new but Compass doesn't find anything. First I do brew services start mongodb-community@5.0 It seems to work ==> Successfully started `mongodb-community` (label:…
0
votes
0 answers

Is there a way to use find and aggregate together in MongoDB?

I m a MongoDB begginer and I have the following problem: I have a document format(sorry for lack of definition) as follows in MongoDB: And I want to query the top 10 albums of the worst genre of a decade I choose. Firstly I did an aggregate that…
PedroSPSantos
  • 51
  • 1
  • 7
0
votes
0 answers

Mongodb SSL connection failing when using SSL certificate issued by Let's encrypt suddenly even though the certificate is not expired

I am using Nginx as a reverse proxy server for MongoDB (deployed in docker) using TCP Streams. Using Nginx also helps me to easily configure SSL certificates obtained from Let's encrypt. Everything is working fine but suddenly I started seeing…
Gopi Ande
  • 81
  • 7
0
votes
1 answer

(MongoDB Compass) lookup using let not working

Not sure whats wrong with my code any help? units collection _id: ObjectId("5fa571d148065e4ec8f77c12") actors:Array deals:Array name:"6th Floor" area:2500 condition:"CATEGORY_A" organisation:ObjectId("5f7de0fbd0d5403fee33fb10") organisation…
Aaron
  • 1
  • 1
0
votes
1 answer

Mongo DB Compass Error on importing .json file

I am trying to import the json file in to my mongo db with MongoDBCompass and its showing me this error, This is how the data in my json file looks like, { "computing" : [ { "year": "Hour of Code", "unit": "Hour of Code lessons ", …
Mark Stone
  • 15
  • 4
0
votes
1 answer

Mongo Project _id of Array of Documents

I struggle writing Mongo Queries. I can never understand why it doesn't return what I expect and yes I am reading the documentation but apparently to dumb to understand. In Compass I write this query for a State collection with a document array of…
GPGVM
  • 5,515
  • 10
  • 56
  • 97
0
votes
1 answer

How do i export only the name of the columns from mongodb?

I am new to mongodb and my task is to export metadata about all collections in a database. I know little about shell scripting and i am not able to understand the documents provided on mongodb website. I am using Mongodb compass 4.2.14 and though i…
Kurt
  • 1
0
votes
1 answer

Can we join two collections from different database in MongoDB

I want to join two different collection from diffrent database so please let me know is it possible we can join two collection of diffrent database?
0
votes
1 answer

How fix error encoding BSON to MongoDB Compass?

I installed MongoDB Compass, and I get error message “An error occurred while loading navigation: Invalid UTF-8 string in BSON document”. I can’t create connection, and database. Version MongoDB Compass 1.28.1 Version MongoDB 4.4.8 Windows 10…
jenigen
  • 128
  • 9
0
votes
2 answers

How to export across collection?

I would like to export information across collection. For example, I have 2 collection User and Orders. User contains login info(username) and orders contains the orderID. So when a customer purchases something, the orderID will be generated in the…
user1234567
  • 333
  • 2
  • 10
0
votes
1 answer

Added some json data in my database with mongodb comapss and tried to get the data with mongoose but got empty array instead

I downloaded some restaurants data in json format and added it to localhost with mongodb compass. But when I tried to get the data from express backend with mongoose I got an empty arrray. database name is sampleRestaurants and the collection name…
0
votes
0 answers

Error when exporting collection in mongodb to csv

I'm trying to export a specific collection in the mongodb to a csv file. I just the default function Collection and Export collection in the tool bar. After select the field and the destination of the csv file and click the export button, I got an…
kali
  • 117
  • 7
0
votes
0 answers

Mongodb-compass load doesn't work in mogosh?

Running the load command in the MongoDB Compass mongosh shell (on macOS Version 1.28.1) doesn't work: \>load("test.js") MongoshUnimplementedError: [COMMON-90002] load is not currently implemented for this platform but running help displays load as…
cierech
  • 383
  • 4
  • 14
0
votes
1 answer

How to use aggregrate in mongodb to $match _id (Compass)

I try to make big aggregation request in compass. I need to filter data by comparison of ObjectIds { _id: ObjectId("5fcc15d567184993fdfd8a24") organizationId: ObjectId("5dc3b48f8f69a100022ab8d8") relatedObject: { organizationId:…
Nikita Polevoy
  • 319
  • 5
  • 17