Advertisement
Guest User

Untitled

a guest
May 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1. $query = Array
  2. (
  3.     [status] => 1
  4.     [uid] => 1
  5.     [@fields] => Array
  6.         (
  7.             [$elemMatch] => Array
  8.                 (
  9.                     [ex_node_group.value] => 4
  10.                     [tag_summary.value] => Array
  11.                         (
  12.                             [$all] => Array
  13.                                 (
  14.                                     [0] => 307
  15.                                 )
  16.  
  17.                         )
  18.  
  19.                 )
  20.  
  21.         )
  22.  
  23. )
  24. jsonp1271192441610({"total":0,"items":[]});
  25.  
  26. // Here's the mongo call:
  27.   $rows = mongodb_collection('fields_current', 'node')->find($query, array('nid' => TRUE))->sort(array('created' => -1))->skip($offset)->limit($limit);
  28.   $total = mongodb_collection('fields_current', 'node')->count($query);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement