ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1025
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Narrowing tests for a PathMatchExpression list their documents by hand. That makes it easy to miss traversal cases: arrays and nested arrays at each path component, missing components, and every BSON type at each component.

      We can add:
       - Type::hasValue(Value) - returns whether a value is one of the values the type describes

       - A utility that generates documents that put a representative value of every BSON type at each component of the path. 

       - A utility that performs a soundness check - ensures that the inferred type for a $match contains the values that matched.

            Assignee:
            Vesko Karaganev
            Reporter:
            Vesko Karaganev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: