You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, when i pass some unknown value in {id} with GET api by id, it is returning
CastError: Cast to ObjectId failed for value "12" at path "_id"
Is it possible, to add validator for object id check if proper value. if not then throw a proper error message from query men.. if it possible, it would be great for my use case
The text was updated successfully, but these errors were encountered:
brajkannan
changed the title
Is it possible to add validator for checking objectId format when using GET api by objectid
Is it possible to add validator for checking objectId format when using GET api by objectid [enhancement]
Nov 3, 2017
Recently, when i pass some unknown value in {id} with GET api by id, it is returning
CastError: Cast to ObjectId failed for value "12" at path "_id"
Is it possible, to add validator for object id check if proper value. if not then throw a proper error message from query men.. if it possible, it would be great for my use case
The text was updated successfully, but these errors were encountered: