[CSHARP-4405] Add $week group by operator in c# / .net Driver Created: 07/Nov/22  Updated: 08/Nov/22  Resolved: 08/Nov/22

Status: Closed
Project: C# Driver
Component/s: Feature Request, LINQ3, Read Operations
Affects Version/s: 2.18.0
Fix Version/s: 2.19.0

Type: New Feature Priority: Major - P3
Reporter: Air A Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: groupby, week
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File mongodb week.png    
Issue Links:
Duplicate
is duplicated by CSHARP-2078 Missing support for $week operator Closed

 Description   

Upon checking your documentation here: https://mongodb.github.io/mongo-csharp-driver/2.14/reference/driver/expressions/#week there are no any example for using $week in c#.

Please help we really want to use the $week for our group by. 

We would like to request to mongoDB .net driver Team to create a natively $week operator in group by c#, perharps using your own syntax library without depending on the c# Week property. I dont think c# will add the Week property in the DateTime class.

Related forum issue thread: https://www.mongodb.com/community/forums/t/group-by-week-in-c-library/197509



 Comments   
Comment by Air A [ 08/Nov/22 ]

Thank you so much @robert! 

Comment by Githook User [ 08/Nov/22 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-4405: Add support for $week operator.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/514afeffb3819d9db95e1ef09fe9f6c6b8ebbda3

Generated at Wed Feb 07 21:48:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.