prisma-generator-express 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -18
- package/dist/helpers/generateFindFirst.js +1 -1
- package/dist/helpers/generateFindMany.js +1 -1
- package/dist/helpers/generateFindUnique.js +1 -1
- package/package.json +1 -1
- package/src/helpers/generateFindFirst.ts +1 -1
- package/src/helpers/generateFindMany.ts +1 -1
- package/src/helpers/generateFindUnique.ts +1 -1
package/README.md
CHANGED
|
@@ -161,21 +161,20 @@ The following properties can be attached to the `req` object to control the beha
|
|
|
161
161
|
| `outputValidation` | ZodTypeAny | (Optional) A Zod schema used to validate the data returned from the Prisma query before sending it to the client. This helps ensure the response adheres to expected data formats. |
|
|
162
162
|
| `omitOutputValidation` | Boolean | (Optional) A flag that, if set to `true`, disables output validation even if a Zod schema is provided. |
|
|
163
163
|
|
|
164
|
-
##
|
|
165
|
-
|
|
166
|
-
| Function
|
|
167
|
-
|
|
|
168
|
-
| `
|
|
169
|
-
| `
|
|
170
|
-
| `
|
|
171
|
-
| `
|
|
172
|
-
| `
|
|
173
|
-
| `
|
|
174
|
-
| `
|
|
175
|
-
| `
|
|
176
|
-
| `
|
|
177
|
-
| `
|
|
178
|
-
| `
|
|
179
|
-
| `
|
|
180
|
-
| `
|
|
181
|
-
| `groupBy` | :white_check_mark: | Available. |
|
|
164
|
+
## Router Schema
|
|
165
|
+
|
|
166
|
+
| Function | Method | URL |
|
|
167
|
+
| ------------ | -------- | ------------ |
|
|
168
|
+
| `findUnique` | `GET` | `/:id` |
|
|
169
|
+
| `findFirst` | `GET` | `/first` |
|
|
170
|
+
| `findMany` | `GET` | `/` |
|
|
171
|
+
| `create` | `POST` | `/` |
|
|
172
|
+
| `createMany` | `POST` | `/many` |
|
|
173
|
+
| `update` | `PUT` | `/` |
|
|
174
|
+
| `updateMany` | `PUT` | `/many` |
|
|
175
|
+
| `upsert` | `PATCH` | `/` |
|
|
176
|
+
| `delete` | `DELETE` | `/` |
|
|
177
|
+
| `deleteMany` | `DELETE` | `/many` |
|
|
178
|
+
| `aggregate` | `GET` | `/aggregate` |
|
|
179
|
+
| `count` | `GET` | `/count` |
|
|
180
|
+
| `groupBy` | `GET` | `/groupby` |
|
package/package.json
CHANGED