mongotron
mongotron copied to clipboard
Bug: First and last collection results has the same _id
Hi, first of all, thanks for developing Mongotron. Has made my learning curve way easier to work with MongoDB.
However, I've noticed this problem in the version 1.0.0-alpha.5 when running on macOS and xUbuntu:
This is the result from a db.users.find({}) simple query that returns 2 documents:

If you see, the Id being displayed for the 2 documents are the same. If you look at the _id property of each document, you can know from what document this repeated id belong:


Apparently the last document is its owner. I've tried querying other collections with more documents, and saw that the first item Id is always being the same as the last document from the result:

The problem with this is that, when you use the edit button to edit the first document, the changes applied go to the last document, because of this id mismatch. So in order to update the first document, you need to copy the id and write an updateById (also remind to fix the last change that was a mistake).
It seems to be the same as #151, and also related to #133 (probably the main cause to this one)
Has been any work done on this? or what is the status? Thank you.
@lattam mongotron seems to be stopped since 2016 =)