I'm trying to update our mongo driver from an older version to the 2.4 version, but I've hit a problem.
Old code:
Query.Where("this.plan.sstats.used < this.plan.sstats.available")
New code:
builder.Filter.Where(t => t.Plan.StorageStats.UploadUsed < t.Plan.StorageStats.UploadAvailable)
Using the new code returns the following error, whereas the old code worked:
Additional information: Unsupported filter: ({plan.sstats.used} < {plan.sstats.available}).
Is there anything I can do to resolve this and retain the atomic nature of the old operation?