Where clause comparison failure

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Works as Designed
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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?

            Assignee:
            Robert Stam (Inactive)
            Reporter:
            John Fricker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: