Skip to content

Allow deleteMany without args in TypeScript #4345

@timsuchanek

Description

@timsuchanek

In JavaScript, this action is totally valid:

prisma.user.deleteMany()

In TypeScript, at least an empty object type is required

prisma.user.deleteMany({})

However, if I just want to delete all models, it should be possible to skip the {}.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions