Add support for QuerySet.intersection() and difference()

XMLWordPrintableJSON

    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      MongoDB doesn't have dedicated operators like it does for $unionWith, but it may be possible to emulate these operations. Emanuel says, "I think difference could be handled with a $lookup for the inner query (a similar flow to unionWith) followed by a $match." 

      Set DatabaseFeatures.supports_select_difference and supports_select_intersection = True to run Django's tests in tests/queries/test_qs_combinators.py.

            Assignee:
            Emanuel Lupi
            Reporter:
            Tim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: