Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3032

javascript-stringify generates incorrect string for query

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.15.0
    • Affects Version/s: None
    • Component/s: Export to Language
    • None
    • Iteration Edamame, Iteration Fig, Iteration Guacamole

      The export-to-language plugin uses a package called 'javascript-stringify' to create a string from the query, which is passed as a javascript object. 

       

      The issue is that it doesn't stringify it correctly, which is causing the compiler to try to compile a string that doesn't make any sense. The solution would probably be to pass the original query/agg string instead of passing the object that is created from the string. Alternatively, could write a stringify method within the plugin that works correctly.

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: