[CSHARP-4858] Provide a way to test if a field exists or is missing in a LINQ query Created: 28/Nov/23  Updated: 24/Jan/24  Resolved: 24/Jan/24

Status: Closed
Project: C# Driver
Component/s: LINQ3
Affects Version/s: 2.22.0
Fix Version/s: 2.24.0

Type: New Feature Priority: Unknown
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-4540 Translate additional parameters for $... Closed
Documented
Related
related to CSHARP-4852 Linq3Provider does not deal correctly... Closed
Backwards Compatibility: Fully Compatible
Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?

Document Mql Exists, IsMissing and IsNullOrMissing methods.


 Description   

Possible API is:

Mql.Exists(<field expression>) 
// and 
Mql.IsMissing(<field expression>)
// and
Mql.IsNullOrMissing(<field expression>)
 

Possible translations are:

{ $ne : [{ $type : "$field" }, "missing"] }
// and
{ $eq : [{ $type : "$field" }, "missing"] }
// and
{ $in : [{ $type : "$field" }, ["null", "missing"]] }


Generated at Wed Feb 07 21:49:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.