Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ## working mongo query
  2. db.BaseLog.find({
  3.  
  4. template_id:"8fd2c23bf5489aa89dfbb0f43b15183d",
  5.  
  6. log_date : {
  7. '$gte': Timestamp(1446328800, 0),
  8. '$lte': Timestamp(1448920800, 0)
  9. }
  10.  
  11. }).pretty();
  12.  
  13.  
  14. ## php mongo query
  15. array(2) {
  16. ["template_id"]=>
  17. string(32) "8fd2c23bf5489aa89dfbb0f43b15183d"
  18. ["log_date"]=>
  19. array(2) {
  20. ["$gte"]=>
  21. object(MongoDate)#5 (2) {
  22. ["sec"]=>
  23. int(1446328800)
  24. ["usec"]=>
  25. int(0)
  26. }
  27. ["$lte"]=>
  28. object(MongoDate)#6 (2) {
  29. ["sec"]=>
  30. int(1448920800)
  31. ["usec"]=>
  32. int(0)
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement