[SERVER-58468] Querying Date inside $or Created: 13/Jul/21  Updated: 13/Jul/21  Resolved: 13/Jul/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Vasanthan K Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

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]}]}



 Comments   
Comment by Vasanthan K [ 13/Jul/21 ]

Thank You

Regards,

Vasanthan K

Comment by Eric Sedor [ 13/Jul/21 ]

Hi vasanthank29@gmail.com,

The SERVER project is for bugs and feature suggestions for the MongoDB server. For this issue we'd like to encourage you to start by asking our community for help by posting on the MongoDB Developer Community Forums.

If the discussion there leads you to suspect a bug in the MongoDB server, then we'd want to discuss here in the SERVER project.

Sincerely,
Eric

Generated at Thu Feb 08 05:44:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.