-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(client): Add omit
option to the queries
#23770
Conversation
size-limit report 📦
|
CodSpeed Performance ReportMerging #23770 will not alter performanceComparing Summary
|
c2efb08
to
0cd2f25
Compare
packages/client/src/runtime/core/errorRendering/applyValidationError.test.ts
Show resolved
Hide resolved
Note: tests are failing because #23813 needs integration first, it should not block the review though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗒️ to be continued... 👀
packages/client/src/runtime/core/jsonProtocol/serializeJsonQuery.ts
Outdated
Show resolved
Hide resolved
packages/client/src/runtime/core/errorRendering/applyValidationError.ts
Outdated
Show resolved
Hide resolved
exclude
option to the queriesomit
option to the queries
910dc00
to
9a11913
Compare
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
Counterpart to prisma/prisma-engines#4807 Can be used standalone or combined with `include`, allows to exclude the fields that normally would be included by default. Available in all methods that return actual database records. It is not useable together with `select` and attempt to do so would cause type check and validation error. When using together with result extensions, excluded dependency of a computed field will be queried from a DB, but will not be returned to the end user, unless computed field is exlucded as well (see "exclude with extensions" tests in this PR). This behaviour is equivalent to what we do if depenency of a computed field is not mentioned in explicit `select`. Close prisma/team-orm#1080
Client memory tests, node 18, library: ✅ Success |
Counterpart to prisma/prisma-engines#4807
Can be used standalone or combined with
include
, allows to excludethe fields that normally would be included by default. Available in all
methods that return actual database records.
It is not useable together with
select
and attempt to do so wouldcause type check and validation error.
When using together with result extensions, excluded dependency of a
computed field will be queried from a DB, but will not be returned to
the end user, unless computed field is exlucded as well (see "omit
with extensions" tests in this PR). This behaviour is equivalent to what
we do if depenency of a computed field is not mentioned in explicit
select
.TODO:
Close prisma/team-orm#1080
#5042
/integration