SouthbankSoftware / dbkoda

State of the art MongoDB IDE
https://www.dbkoda.com
GNU Affero General Public License v3.0
870 stars 43 forks source link

Collections with space in aggregation #12

Closed SiyahaS closed 6 years ago

SiyahaS commented 6 years ago

In the generated code collections with spaces have problem as the generated code just uses collection name with . syntax

db.Example With Space.aggregate(...);

The correct form should be like, at least to my knowledge.

db["Example With Space"].aggregate(...);

michaeljharrison commented 6 years ago

Hi there,

You're absolutely right, this was a pretty silly oversight by us! Another user ran into this problem and we've implemented a fix, it will now use:

db.getCollection("Example with Space").aggregate(...)

This will be available in our next nightly build and our next release. Thanks for the feedback and for using dbKoda :)

Cheers, Michael.

michaeljharrison commented 6 years ago

Hey

Just letting you know the new version of dbKoda is out and we've fixed up this bug to use the correct syntax now. You can grab the latest version on dbkoda.com along with the full release notes for 0.10. Thanks again for helping us improve the product!

Kind Regards, Michael from dbKoda.