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 ?
The Visual Meteor DataBase (VMDB) The VMDB contains about 3,000,000 meteors obtained by standardized observing methods which were collected during the last ~25 years.
Meteor provides a complete open source platform for building web and mobile apps in pure JavaScript. The Meteor team chose MongoDB as its datastore for its performance, scalability, and rich features for JSON. Meteor apps run using JavaScript via Node. JS on the server and JavaScript in the phone's browser.
Collections are Meteor's way of storing persistent data. The special thing about collections in Meteor is that they can be accessed from both the server and the client, making it easy to write view logic without having to write a lot of server code.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With