Added basic query casting to notes and user module queries in their respective services.
$eq specifies equality condition. The $eq operator matches documents where the value of a field equals the specified value.
{ <field>: { $eq: <value> } }
Specifying the $eq operator is equivalent to using the form { field: <value> } except when the <value> is a regular expression.
name: security patch 2 about: add basic query casting aim: bug-fix commit: 57c2d3715cff4846363ace1d5788479199edb3f7
PR Change Description
Added basic query casting to notes and user module queries in their respective services.
$eq
specifies equality condition. The$eq
operator matches documents where the value of a field equals the specified value.Specifying the
$eq
operator is equivalent to using the form{ field: <value> }
except when the<value>
is a regular expression.Closes #27
Files Changed
Commit(s)
Additional Info
Check the MongoDB docs for reference on
$eq
operator here.