Querying Date inside $or

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am trying to find the value using the below $OR query in Mongodb but in the value of deactivateddate is wrongly showing as [Object]

      *var Query = {$or: [

      {isActive:false}

      ,{isActive:true,deactivatedDate: moment().utc().subtract(10,'d').format()}]};*

      when I am console the query I sent to the mongodb I got this

      {$or: [{isActive:false},{isActive:true,deactivatedDate: [Object]}]}

            Assignee:
            Unassigned
            Reporter:
            Vasanthan K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: