Skip to content

Instantly share code, notes, and snippets.

@phanngoc
Created September 3, 2018 09:47
Show Gist options
  • Save phanngoc/e8c9189e038ad5298c5ed9bf2c0a51d3 to your computer and use it in GitHub Desktop.
Save phanngoc/e8c9189e038ad5298c5ed9bf2c0a51d3 to your computer and use it in GitHub Desktop.
[2018-09-03 16:46:29] local.INFO: Array
(
[0] => Array
(
[$match] => Array
(
[$or] => Array
(
[0] => Array
(
[thread.name] => Array
(
[$regex] => ne
[$options] => g
)
)
[1] => Array
(
[message] => Array
(
[$regex] => ne
[$options] => g
)
)
)
[thread_id] => Array
(
[$lt] => 737
)
)
)
[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
)
)
[2018-09-03 16:46:47] local.INFO: Array
(
[0] => Array
(
[$match] => Array
(
[$or] => Array
(
[0] => Array
(
[thread.name] => Array
(
[$regex] => ne
[$options] => g
)
)
[1] => Array
(
[message] => Array
(
[$regex] => ne
[$options] => g
)
)
)
[thread_id] => Array
(
[$lt] => 736
)
)
)
[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