Uploaded image for project: 'Entity Framework'
  1. Entity Framework
  2. EF-178

Support MQL.Exists, MQL.IsMissing and MQL.IsNullOrMissing

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 8.2.1
    • Affects Version/s: None
    • None
    • None
    • Dotnet Drivers
    • Needed
    • Hide

      We'll need some examples on how to use these new functions in EF queries.

      Show
      We'll need some examples on how to use these new functions in EF queries.
    • None
    • None
    • None
    • None
    • None
    • None

      Right now we have no way to query the presence of fields or not in queries written with EF.

      This just requires detecting them and opting them out of partial evaluation via an implementation of EvaluationExpressionFilter.

      Would also recommend overloads for these methods be added to the C# Driver to allow syntax like Customers.Where(c => Mql.IsMissing("Address")) etc. to support shadow properties. If aggreed, that will need a ticket on the driver and should be written independently to not rely on EF.

            Assignee:
            damien.guard@mongodb.com Damien Guard
            Reporter:
            damien.guard@mongodb.com Damien Guard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: