-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove injections from prisma output types (#597)
Remove injections from generated output types for prisma operations. #### Motivation and context Generated types fail validations (_injection not allowed in output types_). #### Migration notes _No changes needed_. ### Checklist - [x] The change come with new or modified tests - [ ] Hard-to-understand functions have explanatory comments - [ ] End-user documentation is updated to reflect the change
- Loading branch information
Showing
48 changed files
with
16,715 additions
and
16,300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 25 additions & 23 deletions
48
...pshots/typegraph_core__runtimes__prisma__type_generation__test__aggregate Record out.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
--- | ||
source: typegraph/core/src/runtimes/prisma/type_generation/mod.rs | ||
expression: "tree::PrintOptions::new().indent_size(3).print(out)" | ||
expression: tp.print(out) | ||
--- | ||
root: struct #16 | ||
├─ [_avg]: struct '_Record_NumberAgg_avg' #10 | ||
│ └─ [age]: optional #9 | ||
│ └─ item: float #8 | ||
├─ [_count]: struct '_Record_AggrCount' #7 | ||
│ ├─ [_all]: optional #6 | ||
│ │ └─ item: integer #5 | ||
│ ├─ [age]: optional #6 | ||
│ │ └─ item: integer #5 | ||
│ ├─ [id]: optional #6 | ||
│ │ └─ item: integer #5 | ||
│ └─ [name]: optional #6 | ||
│ └─ item: integer #5 | ||
├─ [_max]: struct '_Record_NumberAgg' #15 | ||
│ └─ [age]: optional #14 | ||
│ └─ item: integer #13 | ||
├─ [_min]: struct '_Record_NumberAgg' #15 | ||
│ └─ [age]: optional #14 | ||
│ └─ item: integer #13 | ||
└─ [_sum]: struct '_Record_NumberAgg' #15 | ||
└─ [age]: optional #14 | ||
└─ item: integer #13 | ||
root: struct #18 | ||
├─ [_avg]: struct '_Record_NumberAgg_avg' #12 | ||
│ └─ [age]: optional #11 | ||
│ └─ item: float #10 | ||
├─ [_count]: struct '_Record_AggrCount' #9 | ||
│ ├─ [_all]: optional #8 | ||
│ │ └─ item: integer #7 | ||
│ ├─ [age]: optional #8 | ||
│ │ └─ item: integer #7 | ||
│ ├─ [created_at]: optional #8 | ||
│ │ └─ item: integer #7 | ||
│ ├─ [id]: optional #8 | ||
│ │ └─ item: integer #7 | ||
│ └─ [name]: optional #8 | ||
│ └─ item: integer #7 | ||
├─ [_max]: struct '_Record_NumberAgg' #17 | ||
│ └─ [age]: optional #16 | ||
│ └─ item: integer #15 | ||
├─ [_min]: struct '_Record_NumberAgg' #17 | ||
│ └─ [age]: optional #16 | ||
│ └─ item: integer #15 | ||
└─ [_sum]: struct '_Record_NumberAgg' #17 | ||
└─ [age]: optional #16 | ||
└─ item: integer #15 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.