Allow passing locale parameter as symbol

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: 7.1.2
    • Component/s: Dev Exp
    • None
    • Environment:
      Any
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It's not a big problem but it would be nice if it would be consistent with "The Ruby way".

      MongoDB supports locale sort order for quite some time now. 

      Model.all.order_by(name: 1).collation(locale: 'sl')

      But locale option can only be passed as string. Allow it also to be passed as symbol.

      Model.all.order_by(name: 1).collation(locale: :sl)

      by
      TheR

              Assignee:
              Unassigned
              Reporter:
              Damjan Rems
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: