Skip to content

Global default required configuration #6662

@joeytwiddle

Description

@joeytwiddle

#6578 (comment)

mongoose.set('required', true) to make all fields required: true by default.

I know Valeri was not so keen on this idea, so I will try to provide my justification below...

(I brought my comments to this new issue because I thought it might be clearer in a fresh thread.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions