lukemurray / data-atom

Query and manage data sources from Atom
MIT License
152 stars 36 forks source link

MongoDB support #58

Open igorrafael opened 8 years ago

igorrafael commented 8 years ago

Support for MongoDB would be appreciated. :-)

lukemurray commented 8 years ago

I have been thinking about this as my current work is using MongoDB. How would you like to use it and visualise results?

igorrafael commented 8 years ago

I haven't worked on anything big enough to understand complex use cases. I will present my simple use case for my daily needs when developing a RESTful API.

A simple dialog with list of databases would suffice; selecting the database would open a query. The query would be something similar to robomongo's search field: it comes pre-filled with the query db.getCollection('collection_name').find({}). It would be nice to use the standard editor to view and edit the query. Auto-completion for functions or the collection's indexes would be helpful but not necessary.

For the results I think atom's "Project Find Results" style is fine; maybe having the foldouts closed by default would give a nice overview. What would really help would be clicking the results and opening the match for editing, updating the document when it is saved.