I know I can query CollectionName.find().fetch()
in the browser's JS console. Are there other tools that are the equivalent of a GUI admin tool for all the browser's local minimongo storage ?
Mongol does this, FTW, thanks to Max Savin.
browser's local minimongo storage
view –
Magnum You can either use a server-side privileged admin solutions like Houston or any other MongoDB admin interface.
If you want to query data on the client for a quick inspection, you can use console.table
:
console.table(Tasks.find().fetch())
Mongol does this, FTW, thanks to Max Savin.
browser's local minimongo storage
view –
Magnum Also I noticed no one has mentioned it but there is also for chrome a 'Meteor DevTools' extension that you can add to chrome tools. Once your meteor project is running you can see in chrome tool a tab called 'Meteor' that will show you what MiniMongo has.
There is a open source MongoDB management tool called Robomongo — which is very efficient and useful.
There is an awesome atmosphere package meteor toys that shows the subscribed data on minimongo. It also allows to add, edit or delete data on the go. very handy.
Also, meteor toys may not work with latest meteor update (1.6.1+). So, I found a light package that does the same called constellation.
You can choose from anyone. It will surely help debugging on minimongo easier.
You can use the Chrome plugin Meteor MiniMongo Explorer, it's very useful and show you every collections/documents you have currently on your MiniMongo
Pro compared to Mongol
You don't need to add any package to your meteor project to works
Open the console and do it:
Meteor.connection._mongo_livedata_collections[collectionName].find().fetch()
My current Meteor's version is 1.8.1. I don't know it is possible to do the same on the older ones.
collection
is the name of the collection on the mongo-server! –
Arruda © 2022 - 2024 — McMap. All rights reserved.