nbmongo icon indicating copy to clipboard operation
nbmongo copied to clipboard

General Query window

Open starfishmod opened this issue 9 years ago • 3 comments

Ideally I'd like a place where I can write my own complex queries and statements without the restrictions of the criteria/projection/sort window or complex updates and deletes.

i.e db.mycollection.find({some criteria}).forEach(function(res){...})

I couldn't find a way to do this. Am I missing something or is there a way to achieve this?

starfishmod avatar Feb 01 '16 00:02 starfishmod

Hi starfishmod,

Unfortunately the plugin doesn't support this feature. But indeed this could be something nice to have. Maybe something like adding the ability to save js scripts as "MongoDB script" and so they could be run against any mongo database.

Regards, Yann

le-yams avatar Feb 01 '16 10:02 le-yams

@le-yams yes something that I can edit and run scripts would be perfect. Obviously it would be awesome with syntax highlighting etc :) Thanks, Andrew

starfishmod avatar Feb 01 '16 12:02 starfishmod

This is really a needed feature, I got a query to execute against a mongo DB and I was searching minutes and now I see that this is not implemented... I have similar query: db.getCollection('whatever').update(...

Chris2011 avatar May 31 '17 13:05 Chris2011