feat(client): remove GraphQL from TS client (#19749)
* WIP: remove GraphQL
* Adjust CI, tempararily hardcode `getQueryEngineProtocol`
* Remove old GraphQL tests
* Remove exclude
* Remove ProtocolEncoder abstraction
* Remove getDMMF
* Move some utils around
* Remove embedded DMMF generation
* Remove document property
* Update error snapshots in legacy tests
* Update functional test suite
* Remove edgeClientProtocol
* Try to simplify CI piplenes
build-client-matrix script is no longer needed
* Fix relation tests
* Fix relation mode test
* Update .github/workflows/test-template.yml
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
* Update packages/client/src/generation/dmmf.ts
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
* Update packages/client/src/runtime/core/errors/PrismaClientValidationError.ts
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
* Update packages/client/src/runtime/getPrismaClient.ts
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
* Penalize `RequiredArgumentMissing` error
So that any other will surface below that
* Update packages/client/src/runtime/core/errorRendering/applyUnionError.ts
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
* Fix client version for validation errors
* Bump engines
---------
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
base
3a95e6c
6 months ago by SevInf
0%
feat(client): Remove array shortcut
Stop expanding `T[]` to `T | T[]` during types generation unless both
scalars and lists are allowed on the engine side.
GraphQL encoder: Stop converting scalar values into single-element lists
automatically.
BREAKING CHANGE: automatic conversion of scalar values to lists is no
longer performed unless explicitly allowed by the schema. Cases where
this is no longer allowed will be caught by both compile- and runtime
validation.
Sibling to prisma/prisma-engines#3966
fa7eea1
6 months ago by SevInf
-1%
feat(client): Remove array shortcut
Stop expanding `T[]` to `T | T[]` during types generation unless both
scalars and lists are allowed on the engine side.
GraphQL encoder: Stop converting scalar values into single-element lists
automatically.
BREAKING CHANGE: automatic conversion of scalar values to lists is no
longer performed unless explicitly allowed by the schema. Cases where
this is no longer allowed will be caught by both compile- and runtime
validation.
Sibling to prisma/prisma-engines#3966
Fix #19303