path is required error mongoose code example Example: Error: ValidationError:: Path `` is required. just remove required: true