Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Runtime validation for Prisma client constructor parameters #889

@divyenduz

Description

@divyenduz

Problem

If there is a typo/misuse in Prisma client's constructor parameters. We silently get a Prisma client object.

Suggested solution

It should fail with a runtime validation error like queries fail.

Additional context

I ran into this multiple time when using Prisma client in Javascript where I had either a typo or I was inadvertently using a param that didn't exist.

Metadata

Metadata

Assignees

Labels

kind/improvementAn improvement to existing feature and code.roadmap/quick-winCould skip the lane as looks like an easy wintech/typescriptIssue for tech TypeScript.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions