pano9000 / freeCodeCamp_backend_exercise-tracker

My WIP for the Exercise Tracker project from freeCodeCamp
0 stars 0 forks source link

backend: define "searchable" and "unsearchable" fields in db schema #63

Open pano9000 opened 1 year ago

pano9000 commented 1 year ago

Some fields shoould not be searchable via RegExp, which is currently used for the searchFor/searchIn query parameters. An example is the Date or Duration fields in the Exercise schema.

Another example is, e.g. disabling searching for other future fields, like e.g. "isAdmin", which shouldn't be searchable without any authorization