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

type in mongodb not filtering record properly

Applying Filter {'info.version': { $type: "string" }} Output of above filter c python java ubuntu MongoDB Version: 3.6.3 Data in MongoDB(Consider every list element as single document) [ { "name": "c", "info": { "version": "2.0" …
0
votes
0 answers

How to recover removed pipeline in mongodb compass

I accedentally removed pipeline, it had a lot more queries that took too much of my time. Is there any way to recover? From Where I removed this pipeline? Here is the place: I clicked on Open Saved Pipelines and then clicked on the remove icon…
WasiF
  • 26,101
  • 16
  • 120
  • 128
0
votes
1 answer

MongoDB automatically starts with compressor disabled

I'm new to MongoDB and just followed their instructions to install (server and mongodb compass) Got the server running (which is working with my Java backend), but now I wanted to check how it looks via the GUI. My connection string (which I get…
tijn167
  • 547
  • 2
  • 21
0
votes
2 answers

why is MongoDbB not running and not working?

i installed MongoDB compass and when i try to connect with hostname localhost ,Port: 27017 i receive this error: connect ECONNREFUSED 127.0.0.1:27017. I also looked in Task manager and MongoDB was not running. Thank you for your help
Linda
  • 1
  • 1
0
votes
0 answers

MongoDB Compass Error while creating view : A pipeline stage specification object must contain exactly one field

I am new to MongoDB and wanted to create a view after making all the aggregation stages and it seems to give me this error when I click on create view : A pipeline stage specification object must contain exactly one field. This is the Aggregation…
0
votes
1 answer

Mongo DB Compass and Filtering on int 64

Below is an image of a single record in my mongo database. I am using mongodb compass and if I search with the term {date: 1567532362460} I find my record. If however I search with terms like: {key: 6366627898639550262} or {user:…
lvoelk
  • 2,390
  • 1
  • 12
  • 16
0
votes
1 answer

MongoDB Compass : filter and query by date

Say I have a Travel collection that contains several documents, Such as : { "_id": { "$oid": "27637b4h6u7y897ba9021bn2" }, "startTime": { "$date": "2021-05-04T13:55:38.286Z" } "stopTime": { "$date":…
Finalmix6
  • 375
  • 8
  • 21
0
votes
1 answer

MongoDB Compass analyze schema and show map using object and not array

I'm using MongoDB Compass v1.26 and I have some collections with lat/long data, but they looks like this: "coordinates": { "latitude": "43.0818", "longitude": "-87.892" } It does not pick it up in the schema > analyze to show as a map. I…
ericosg
  • 4,926
  • 4
  • 37
  • 59
0
votes
1 answer

Mongodb select information to get from an object without knowing object key

I have this documents at my DB { "_id":"606b583b2506eb000988a8fd", "lastSync":"2021-04-13T00:10:02.984+00:00", "Month":{ "2020-12":{ "a":10, "b":21 }, "2021-01":{ "a":112, "b":34 }, "2021-03":{ …
Gumagu
  • 3
  • 2
0
votes
1 answer

$match in $lookup pipeline always returns all the documents, not filtering

I have two collections. First Collection { _id:"601d07fece769400012f1280", FieldName:"Employee", Type:"Chapter" } Second Collection _id : "601d11905617082d7049153a", SurveyId : "601d118e5617082d70491539", TemplateName : "", Elements : [ …
0
votes
0 answers

Cannot import JSON containing an array using MongDB Compass

I'm trying to import documents containing arrays from JSON file - like this one: {"aaa":["sss","aaa"]} Than MongoDB Compass raises "Error importing Callback called multiple times" Am I doing something stupid or it is a bug?
mfed
  • 1
  • 1
  • 1
0
votes
1 answer

mongo Using a $match within an $and

I'm trying to use an $and within a $match and can't seem to get it correct. The syntax I'm using isn't correct. { "$match": { "$expr": { "$and": [ { "$match": { …
0
votes
0 answers

"MongoDB SRV: DNSHostNotFound: Failed to look up server: "":No records found for given DNS query." Robo3t with mongodb SRV

So, I am getting an error when trying to setup Robo 3T with MongoDB Compass. I don't know why, but here is the error: "MongoDB SRV: DNSHostNotFound: Failed to look up server: "":No records found for given DNS query."
0
votes
0 answers

MongoDB Compass doesn't connect with Atlas connection string. | Error: getaddrinfo ENOTFOUND

When I try to connect using the connection string copied from the MongoDB Atlas cluster, and paste it into Compass a warning message appears, and connect button is disabled. Connection string…
0
votes
2 answers

MongoDBCompass shell explain does not honor verbosity parameter

Using: MongoDB 4.2.3 Community edition and the MongoSH Beta When I run explain on an aggregate query, I get the queryPlanner output regardless of what I supply for the verbose parameter. Ex: db.myCollection.aggregate([{$match: { "entry.active" :…
pierus
  • 283
  • 4
  • 14