celeroncoder / notary-API

Notes App with NestJS-Typescript, MongoDB.
MIT License
2 stars 1 forks source link

Security patch 2 #28

Closed celeroncoder closed 2 years ago

celeroncoder commented 2 years ago

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.

{ <field>: { $eq: <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.