Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## working mongo query
- db.BaseLog.find({
- template_id:"8fd2c23bf5489aa89dfbb0f43b15183d",
- log_date : {
- '$gte': Timestamp(1446328800, 0),
- '$lte': Timestamp(1448920800, 0)
- }
- }).pretty();
- ## php mongo query
- array(2) {
- ["template_id"]=>
- string(32) "8fd2c23bf5489aa89dfbb0f43b15183d"
- ["log_date"]=>
- array(2) {
- ["$gte"]=>
- object(MongoDate)#5 (2) {
- ["sec"]=>
- int(1446328800)
- ["usec"]=>
- int(0)
- }
- ["$lte"]=>
- object(MongoDate)#6 (2) {
- ["sec"]=>
- int(1448920800)
- ["usec"]=>
- int(0)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement