Skip to content

Instantly share code, notes, and snippets.

@phanngoc
Created September 3, 2018 03:52
Show Gist options
  • Select an option

  • Save phanngoc/cc77532a1b0f0fa38a7bd2d1872ebde6 to your computer and use it in GitHub Desktop.

Select an option

Save phanngoc/cc77532a1b0f0fa38a7bd2d1872ebde6 to your computer and use it in GitHub Desktop.
[2018-09-03 10:50:28] local.INFO: Array
(
[0] => Array
(
[$match] => Array
(
[$and] => Array
(
[0] => Array
(
[thread.last_time_client] => Array
(
[$gt] => 2018-08-26
)
)
[1] => Array
(
[thread.last_time_client] => Array
(
[$lt] => 2018-09-14
)
)
)
[$or] => Array
(
[0] => Array
(
[thread.name] => Array
(
[$regex] => 香織
[$options] => g
)
)
[1] => Array
(
[$or] => Array
(
[0] => Array
(
[thread.name] => Array
(
[$regex] => duoc k
[$options] => g
)
)
[1] => Array
(
[message] => Array
(
[$regex] => duoc k
[$options] => g
)
)
)
)
)
)
)
[1] => Array
(
[$sort] => Array
(
[thread.created_at] => -1
)
)
[2] => Array
(
[$group] => Array
(
[_id] => Array
(
[thread_id] => $thread_id
)
[messages] => Array
(
[$addToSet] => $message
)
)
)
[3] => Array
(
[$limit] => 10
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment