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

mongodb weird RECOVERY database appearing out of no where

hello I have a question about my database. I restarted it about an hour ago and didn't check if my data was still in it. When I went and looked at the data my own databases where gone and there only was a weird RECOVERY database inside of it with a…
Wouter
  • 15
  • 6
0
votes
1 answer

how to install mongodb compass from stable version onto windows 10

I was following an exercise and wanted to install MongoDB Compas (1.19.6(Stable)). I successfully downloaded he .dmg file and extracted the file using 7-zip but when I go into the folder, I can't find a exe or instructions on how to run/install…
OLA
  • 861
  • 2
  • 11
  • 23
0
votes
1 answer

MongoDB Compass aggregations $match filter returns null

I have collection in mongodb and its size is 5.7 million. But I have problem with the $match filter. I'm trying a query with this command: { date:{ $gte: "2019-07-16", $lte: "2019-07-16" } } returns 10k documents. But I'm trying $match aggregations…
orhanayd
  • 1
  • 1
0
votes
1 answer

How to convert a string with characters in the int for the entire collection?

I have a collection of a similar look: _id:5d0fe0dcfd8ea94eb4633222 Category:"Stripveiling (Nederlands)" Category url:"https://www.catawiki.nl/a/11-stripveiling-nederlands" Lot title:"Erwin Sels (Ersel) - Originele pagina" Seller…
kshnkvn
  • 876
  • 2
  • 18
  • 31
0
votes
2 answers

Monogdb find records by comparing two fields of type ObjectId

I have a query which is working fine when I run it in MongoDB Compass utility: { $where: "if (this.media && this.media.length > 1 && this.status=='Published') {return this; } "} In the same collection or table I have two more fields createBy and…
Arvind K.
  • 1,184
  • 2
  • 13
  • 27
0
votes
1 answer

Is it possible to use a mongorc.js in MongoDB Compass?

I'd like to use my custom commands defined in a mongorc.js in MongoDB Compass. Is this possible? Is it possible to use a mongorc.js in MongoDB Compass?
Kris
  • 4,595
  • 7
  • 32
  • 50
0
votes
0 answers

Creating compound indexes that will match queries in MongoDB

For our app I'm using the free-tier (for now) on MongoDB-Atlas. our documents have, among other fields, a start time which is a Datetime object, and a userId int. export interface ITimer { id?: string, _id?: string, // id property assigned…
0
votes
0 answers

MongoDB compass - NaN literal results in error?

I'm using MongoDB aggregation to sum some records. One of them has a NaN value and as such, the final value becomes NaN. I've written a $project step to convert NaN to 0. However, using a NaN literal results in an error Expected "[" or…
Johan Svensson
  • 339
  • 5
  • 15
0
votes
1 answer

MongoDB Compass Community 1.16.3 $match issue with ObjectId + ISODate

I am trying to build an aggregation on MongoDB Compass Community 1.16.3 and I have a strange issue on the $match stage querying ObjectId and ISODate at the same time. The non working $match stage { user_id: ObjectId("5c9168ec5530c90d0c5cd98a"), …
Yann Masoch
  • 1,628
  • 1
  • 15
  • 20
0
votes
1 answer

How to limit the initial number of records fetched on Compass?

When I navigate to a particular collection, Compass tries to fetch 20 records from the server. How do I limit this to just one? I am using version 1.15.4-win32-x64.
Sunder
  • 1
0
votes
1 answer

How to connect mongodb from another windows server

How to connect mongodb from another windows server. I have a windows server with public IP. I have installed monngoDB on that server. I have created database and as well as user on mongodb. Now I am trying to connect mongodb using compass from my…
0
votes
0 answers

White space in MongoDB Compass Community

For some reason in MongoDB Compass Community my values are displayed as if there was a large amount of white space in them. But when I click on the value there is no white space to delete. Also, I can't move the cursor into this white space. Is…
Freddy Bonda
  • 1,189
  • 6
  • 15
  • 33
0
votes
0 answers

Connect to EC2 mongo server

I have been facing this issue since so long. I want to connect to compass or any mongo GUI tool to EC2 mongo server. I have bind_ip 127.0.0.1 in mongo.conf and don't want to open for all IP. I have tried connecting to the server through SSH but get…
0
votes
0 answers

Search and element in Array in MongoDB (MongoDB Compass)

I'm trying to make a simple query to get documents with the filtered collection made in the filter field. Bellow is the query and the result. My question is: Why the result returns "city_id" 0 and 1 if I've filtered only cities with the id 1?
0
votes
2 answers

Unable to connect to mongodb atlas using compass

Trying to connect to mongodb atlas but the page keeps loading after i click on connect button.
Chetan
  • 469
  • 3
  • 12
  • 27
1 2 3
31
32