Using the old MongoDB driver, I was able to perform the following query:
Query.Where("this.plan.sstats.used < this.plan.sstats.available")
But with the new one, I'm forced to write this:
builder.Filter
.Where(t => t.Plan.StorageStats.UploadUsed < t.Plan.StorageStats.UploadAvailable)
These look the same, but the new one does not work and I receive this error message:
Additional information: Unsupported filter: ({plan.sstats.used} < {plan.sstats.available}).
The back-end version is currently the same, so I don't see any reason why this shouldn't continue to be able to work.
How do I fix this? Is there a better way of doing this, whilst maintaining atomicity?