You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since find and the other methods are wrapping mongo calls, would we need to make these methods chainable, then add a sort(), limit(), etc? Or do you have another plan of attack? Would love to help out where I can.
@steezeburger We just need to implement the parsing of the .limit() and other chainable methods in the query editor. Like you said we are just wrapping the node-mongodb methods, so it's just a matter of parsing a query to extract the limit, skip, etc...
If you look at the Collection class, where we are wrapping the methods, it's just a matter of passing down the skip and limit values as options.
You'll see a bunch of regexes that are used to parse a query from the Codemirror editor, to extract the method name, the query, the options, etc... So we just need some regexes that can extract .limit().
Add support for limit right in the query editor.
Ex.
The text was updated successfully, but these errors were encountered: