You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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).The text was updated successfully, but these errors were encountered: