Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15456

[Realm] Correct details on RQL page

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Realm
    • None

    Description

      Reading though the page on the Realm Query Language (https://www.mongodb.com/docs/realm/reference/realm-query-language/), I found a few missing and/or confusing parts:

      • Arithmetic is supported in expressions but not mentioned anywhere.
      • How do you do substitutions?
        • (NSPredicate uses %K for keypaths, %@ for variables. Not clear what to do in RQL)
      • Subqueries section should be after Collection operators
      • Between should be written as between {a, b} in the operator list (otherwise you have to hunt for an example to know how to actually define the range)

      In general it is a bit confusing that this information is spread out over multiple pages. If you come from js, you will also hit into https://www.mongodb.com/docs/realm/sdk/node/advanced/query-engine/ and https://www.mongodb.com/docs/realm/sdk/node/examples/read-and-write-data/#std-label-node-filter-queries, both of which contains an incomplete subset of the information on the RQL page. It would be nice if they could be consolidated.

      Attachments

        Activity

          People

            ben.p@mongodb.com Ben Perlmutter
            alexander.stigsen@mongodb.com Alexander Stigsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 29 weeks, 5 days ago