Skip to content

CastError surfacing still an issue #10

Open
@joshkopecek

Description

@joshkopecek

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions