Is there a workaround to set variable in MongoDB query

Is there any shortcut to set variable for mongoDB query? I’m in dire need of setting variable in MongoDB, but it seems that metabase does not support curly braces, as Mongo itself uses JSON.

Does anyone has any solution for this?