You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MongoDB's API supports passing in User-defined variables in the let parameter for some functions (listed below) but Mongo Playground doesn't support it. The error is:
fail to run update: write exception: write errors: [Invalid $set :: caused by :: Use of undefined variable: newFlavor]
However, using let in these commands in Mongo Compass Compass-shell works:
MongoDB's API supports passing in User-defined variables in the
let
parameter for some functions (listed below) but Mongo Playground doesn't support it. The error is:However, using
let
in these commands in Mongo Compass Compass-shell works:Is it due to
let
not being supported in Mongooseoptions
?Repro example from the docs, executed in Compass-shell:
Initialise:
Using update with
let
params:Or using updateMany with
let
params:The text was updated successfully, but these errors were encountered: