Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5752

Translate Mongoid::Criteria to MQL (similar to AR's to_sql)

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Dev Exp, Query
    • Labels:
      None
    • Ruby Drivers

      Similar to ActiveRecord::Relation#to_sql it would be beneficial to be able to translate a the internal representation of a query or aggregation to raw MQL.

      Mongoid::Criteria::Queryable::Selector can "sort of" expose this as the filter criteria can be returned, but other fields passed to the underlying find command (such as sort, skip, limit or projection) wouldn't.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: