Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting from MongoDB to DocumentDB #3

Open
gmkhalid opened this issue Dec 15, 2016 · 0 comments
Open

Porting from MongoDB to DocumentDB #3

gmkhalid opened this issue Dec 15, 2016 · 0 comments

Comments

@gmkhalid
Copy link

Hi Larry,

I am in the process of porting from MongoDB to DocumentDB, I came across lumenize. How could we write this aggregate expression in lumenize?

{ $match:{$and:[{"Id":"A99999999"}, {$or:[ {$and:[{'dw.f':null}, {T1:{'$lt':1415923200000}} ]}, {$and:[{'dw.f':null}, {T1:{"$gte":1415923200000, "$lte":1416009599999}} ]} ]} ]}}, { $group:{_id: {Id:"$Id", dt:{$subtract:[{$add:["$T1",-19800000]},{$mod:[{$add:["$T1",-19800000]},86400000]}]}}, td:{$sum:"$Dis"} }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant