How can I view the contents of the Minimongo database in the client with Meteor?
Asked Answered
O

7

7

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 ?

Overbalance answered 16/9, 2014 at 15:44 Comment(3)
You may be interested in houston, have you heard of it ? github.com/gterrono/houstonCeltuce
Well, that's server-side, but due to mirroring, it's pretty good- thanks for the link.Overbalance
can you to use robomongo robomongo.org , but it is not the same what you have on the client or serverSpotter
O
5

Mongol does this, FTW, thanks to Max Savin.

Overbalance answered 2/11, 2015 at 14:45 Comment(1)
Yes this pluggin works well but Mongol bypass the insecure package and shows all entities so it's not a real browser's local minimongo storage viewMagnum
S
10

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())
Sod answered 1/11, 2014 at 19:42 Comment(0)
O
5

Mongol does this, FTW, thanks to Max Savin.

Overbalance answered 2/11, 2015 at 14:45 Comment(1)
Yes this pluggin works well but Mongol bypass the insecure package and shows all entities so it's not a real browser's local minimongo storage viewMagnum
R
3

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.

Roentgenogram answered 26/1, 2018 at 13:41 Comment(0)
D
1

There is a open source MongoDB management tool called Robomongo — which is very efficient and useful.

Discernible answered 2/11, 2015 at 4:29 Comment(1)
Minimongo is a client-side implementation of MongoDB that runs completely in the user's browser - so Robomongo unfortunately won't workExtreme
B
1

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.

Braasch answered 3/7, 2018 at 6:56 Comment(0)
H
1

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

Halfhearted answered 27/2, 2019 at 17:47 Comment(0)
S
1

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.

Strap answered 25/8, 2020 at 16:21 Comment(1)
collection is the name of the collection on the mongo-server!Arruda

© 2022 - 2024 — McMap. All rights reserved.