Closed jiro4989 closed 3 years ago
findAndModify methods has a remove parameter.
remove
I want to use this functions, but findAndModify is not supported yet. So I added the parameter.
findAndModify
The document of a remove parameter of findAndModify writes
remove: Must specify either the remove or the update field.
It means that both update parameter and remove parameter can not set. So I used if - else.
update
if - else
if remove: request["remove"] = remove.toBson() else: request["update"] = update
findAndModify methods has a
remove
parameter.I want to use this functions, but
findAndModify
is not supported yet. So I added the parameter.The document of a
remove
parameter offindAndModify
writesIt means that both
update
parameter andremove
parameter can not set. So I usedif - else
.