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

Using variables in query

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Compass

    Description

      Hi, I would like to use variables in Compass queries also in aggregations like var myArr = ['John', 'Adele', 'Paris'] and then use it in queries like {"name": {$in: myArr}}.

      There can be something like integrated console in Compass which allows me to create a variables.

      That's all. Thanks for watching. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            vladimir.camaj@gmail.com Vladimír Čamaj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: