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

Write a query to display max score along with exam type and name in MongoDB compass

{ "_id": { "$oid": "56d5f7eb604eb380b0d8d8ce", }, "student_id": 0, "scores": [ { "type": "exam", "score": 78.40446309504266, }, { "type": "quiz", "score": 73.36224783231339, }, { "type":…
Mr S
  • 1
  • 1
0
votes
1 answer

Cannot connect remotely to MongoDB despite adding local IP to mongod.conf

I have an issue with establishing a remote connection to MongoDB running on a VPS. I have followed instructions on editing the mongod.conf to bind my IP. The network section looks like this: # network interfaces net: port: 27017 bindIp:…
mikeym
  • 5,705
  • 8
  • 42
  • 62
0
votes
0 answers

MongoDB aggregate function returns out of order documents in the array on a Deployed server

I have an API that is connected to a Mongo Database remotely hosted on EC2. I have three collection on there namely surveys, responses and questions. There "schema" is as follows: Surveys: { "_id": { "$oid": "62ff2e597ac958667ff8468e" }, …
Joseph
  • 63
  • 1
  • 10
0
votes
1 answer

Count document satisfies criteria in MongoDB Compass

Below one of the document inside my test.users collection. { "_id": { "$oid": "62ef8c502935226353a97efb" }, "workspaces": [ { "$oid": "62ef8c722935227aaca97eff" } ], "emailConfirmed": true, "ipInfo": { "ip":…
william007
  • 17,375
  • 25
  • 118
  • 194
0
votes
1 answer

This error is keep coming const err = MongooseError(message);

I just started ExpressJS and MongoDB and I'm trying to connect to MongoDB compass by localhost but I'm getting the same error. Can anyone please help me??This is the screenshot of the error
0
votes
1 answer

$or in mongodb compass

I'm trying for mongo db to show me only the pokemons that are Grass or Water trype, but it won't let me filter it. $or needs to be an array Is there another way to filter an or?
0
votes
1 answer

I'm trying to install mongodb, and I've tried other version of mongodb from latest to older but it is not installing mongodb compass. this is error

#Requires -Version 3.0 <# .SYNOPSIS Download and install latest version of MongoDB Compass. .DESCRIPTION A longer description. .INPUTS Description of objects that can be piped to the script .OUTPUTS Description of objects that are output by the…
0
votes
1 answer

How to edit and delete documents from AWS DocumentDB using MongoDB Compass

I recently was able to connect my AWS DocumentDB cluster to MongoDB Compass so I could monitor what was going on. The issue I am currently facing is that I can not update or delete individuals documents from MongoDB Compass; I keep getting an error…
0
votes
1 answer

Is it possible to create a query matching the same document on MongoDB?

I have a document that looks like this: { "total": 150.00, "products": [ {"a": 75.00}, {"b": 75.00} ], "paid": 100.00 } I'm trying to find a way to query a document where the total is greater than the paid field. So…
Johnnes Souza
  • 361
  • 1
  • 8
  • 22
0
votes
1 answer

How to query to get specific objects from array of objects?

Currently I am learning mongodb. Suppose I have one collection named post in mongodb which data is : [{ id: 123, uId: 111, msg: 'test 1', attachments: [ {name: 'attach1', url: 'https://example.com', isDeleted: false}, …
Saurabh
  • 3
  • 3
0
votes
1 answer

How to find objectId as an foreign key in mongo

How can I find the value of ObjectId in whole database for any field in mongo , it might be use in some collections for various fields as a reference? "fourk_runs": [{ "Objectid": "6299b9f00f09ff045cc15d" }], "fourk_pass_fail":…
f.kermani
  • 1
  • 1
0
votes
0 answers

Connect to Azure Cosmos DB with MongoDB Compass without connection string

I have an Azure Cosmos DB API for MongoDB account and i can connect to it using the primary or secondary connection string from MongoDB Compass by entering the connection string directly. Multiple users will need to connect to it and I don't want to…
0
votes
2 answers

Unable to connect to local MongoDB docker cluster with Compass

I have a following MongoDB docker cluster as defined in the following docker-compose.yml: version: "3" services: mongo1: hostname: mongo1 container_name: mongo1 image: mongo:5 volumes: - ${PWD}/data/db/mongo1:/data/db …
abhinavkulkarni
  • 2,284
  • 4
  • 36
  • 54
0
votes
1 answer

Import database schema in MongoDB

I created json schema for MongoDB. It's look like: { "schemaType": "Collection", "name": "Manufacturier", "defaultValue": "", "description": "...", "fields": [ { "schemaType": "Field", …
kepich
  • 98
  • 1
  • 1
  • 8
0
votes
1 answer

MongoDB query for nested array of specific object

I am a new mongodb user, this why I am asking this question. I have a document, in this document I have 3 objects under one _id. When I am filtering { "people.age": { $in: [24] } } I am getting full this document. But I want to see only the…
jonson
  • 105
  • 2
  • 7