In Spring Criteria, Sort.by(Direction, String...) has an invalid linter warning

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 0.1.0
    • Affects Version/s: None
    • Component/s: linters
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • Developer Tools

      In a query like:

      Query.query(where("tomatoes.viewer.rating").exists(true)).with(Sort.by(Sort.Direction.Desc, "tomatoes.viewer.rating"))
      

      The linter complains that Sort.Direction.Desc is not compatible with the type of field "tomatoes.viewer.rating" (double | int).

      That's invalid because it's sorting behaviour.

            Assignee:
            Unassigned
            Reporter:
            Kevin Mas Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: