Open
Description
Despite using mongoose.Error()
when I use the Schema Types in another project I get this:
Unhandled rejection ValidationError: CastError: Cast to Point failed for value "[object Object]" at path "loc"
and no 'reason' which is less than helpful since I can't see why my object is not passing. Building a custom error seems unnecessarily onerous (Automattic/mongoose#4113).
Thoughts @markstos ?
Metadata
Metadata
Assignees
Labels
No labels