laravel使用mongodb
請記住不要使用模型,否則就GG了
$res = DB::collection('questionnaire')->where('_id', '5d35797a8c97450e896594b7')->update(
[
'$push' => [
'issue_list' => [
'$each' => [
50,
60,
70
],
'$position' => 1
]
]
]
);