$slice operator does not work for projection

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.18.0
    • Affects Version/s: 1.14.7
    • Component/s: Compass
    • None
    • Environment:
      MacOS
    • Iteration Yuca
    • Needed
    • Hide

      If there's a different way of executing $slice in compass, we should mention it somewhere in our docs.

      Show
      If there's a different way of executing $slice in compass, we should mention it somewhere in our docs.
    • None

      Was also tried by customer on windows, using latest release from our download center for compass.

      $slice for projection which works fine from mongo shell, gives error as malformed(thereby not allowing the query to be executed) in compass. Screenshots attached.

        1. Screenshot 2019-02-07 at 7.34.23 PM.png
          443 kB
          Sanjay Gianchandani
        2. Screenshot 2019-02-07 at 7.36.01 PM.png
          676 kB
          Sanjay Gianchandani

              Assignee:
              Durran Jordan
              Reporter:
              Sanjay Gianchandani
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: