The filter is the problem
Instead of this: { "job": { "input": { "prop1": "value1" } } }
{ "job": { "input": { "prop1": "value1" } } }
try this: { "job.input.prop1": value1 }"value1" can be just a variable. mongoose will convert into JSON
{ "job.input.prop1": value1 }
"value1"