@jest-games-org/backend-package-graphql-to-prisma-helpers 1.0.1 → 1.0.3
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/dist/index.esm.js +314 -314
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +337 -337
- package/dist/index.js.map +1 -1
- package/dist/modules/filter/helpers/graphQLBooleanFilterInputToPrismaBooleanFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLBooleanNullableFilterInputToPrismaBooleanNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLDateTimeFilterInputToPrismaDateTimeFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLDateTimeNullableFilterInputToPrismaDateTimeNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLFloatFilterInputToPrismaFloatFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLFloatNullableFilterInputToPrismaFloatNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLIdFilterInputToPrismaStringFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLIdNullableFilterInputToPrismaStringNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLIntFilterInputToPrismaIntFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLIntNullableFilterInputToPrismaIntNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedFloatFilterInputToPrismaNestedFloatFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedIdFilterInputToPrismaNestedStringFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedIntFilterInputToPrismaNestedIntFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedStringFilterInputToPrismaNestedStringFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLStringFilterInputToPrismaStringFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/graphQLStringNullableFilterInputToPrismaStringNullableFilter.d.ts +8 -0
- package/dist/modules/filter/helpers/index.d.ts +22 -22
- package/dist/modules/index.d.ts +1 -1
- package/dist/modules/order/helpers/graphQLOrderInputToPrismaOrderInput.d.ts +9 -0
- package/dist/modules/order/helpers/graphQLOrderInputsToPrismaOrderInputs.d.ts +9 -0
- package/dist/modules/order/helpers/index.d.ts +3 -0
- package/package.json +3 -3
- package/dist/modules/filter/helpers/graphQLBooleanFilterToPrismaBooleanFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLBooleanNullableFilterToPrismaBooleanNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLDateTimeFilterToPrismaDateTimeFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLDateTimeNullableFilterToPrismaDateTimeNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLFloatFilterToPrismaFloatFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLFloatNullableFilterToPrismaFloatNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLIdFilterToPrismaStringFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLIdNullableFilterToPrismaStringNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLIntFilterToPrismaIntFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLIntNullableFilterToPrismaIntNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedDateTimeFilterToPrismaNestedDateTimeFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedDateTimeNullableFilterToPrismaNestedDateTimeNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedFloatFilterToPrismaNestedFloatFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedFloatNullableFilterToPrismaNestedFloatNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedIdFilterToPrismaNestedStringFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedIdNullableFilterToPrismaNestedStringNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedIntFilterToPrismaNestedIntFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedIntNullableFilterToPrismaNestedIntNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedStringFilterToPrismaNestedStringFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLNestedStringNullableFilterToPrismaNestedStringNullableFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLStringFilterToPrismaStringFilter.d.ts +0 -8
- package/dist/modules/filter/helpers/graphQLStringNullableFilterToPrismaStringNullableFilter.d.ts +0 -8
- package/dist/modules/order-by/helpers/graphQLOrderByInputToPrismaOrderByInput.d.ts +0 -9
- package/dist/modules/order-by/helpers/graphQLOrderByInputsToPrismaOrderByInputs.d.ts +0 -9
- package/dist/modules/order-by/helpers/index.d.ts +0 -3
- /package/dist/modules/{order-by → order}/helpers/graphQLSortOrderToPrismaSortOrder.d.ts +0 -0
- /package/dist/modules/{order-by → order}/index.d.ts +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -92,244 +92,244 @@ const graphQLCursorToPrismaWhereInput = (cursor) => {
|
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
* Maps the GraphQL boolean filter to a Prisma boolean filter.
|
|
96
|
-
* @param
|
|
95
|
+
* Maps the GraphQL boolean filter input to a Prisma boolean filter.
|
|
96
|
+
* @param input The GraphQL filter input.
|
|
97
97
|
* @returns The Prisma filter.
|
|
98
98
|
*/
|
|
99
|
-
const
|
|
100
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
101
|
-
if (
|
|
99
|
+
const graphQLBooleanFilterInputToPrismaBooleanFilter = (input) => {
|
|
100
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
101
|
+
if (input === null || input === undefined) {
|
|
102
102
|
return undefined;
|
|
103
103
|
}
|
|
104
104
|
// Return the Prisma filter.
|
|
105
105
|
return {
|
|
106
|
-
equals:
|
|
106
|
+
equals: input.equals ?? undefined,
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
* Maps the GraphQL boolean nullable filter to a Prisma boolean nullable filter.
|
|
112
|
-
* @param
|
|
111
|
+
* Maps the GraphQL boolean nullable filter input to a Prisma boolean nullable filter.
|
|
112
|
+
* @param input The GraphQL filter input.
|
|
113
113
|
* @returns The Prisma filter.
|
|
114
114
|
*/
|
|
115
|
-
const
|
|
116
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
117
|
-
if (
|
|
115
|
+
const graphQLBooleanNullableFilterInputToPrismaBooleanNullableFilter = (input) => {
|
|
116
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
117
|
+
if (input === null || input === undefined) {
|
|
118
118
|
return undefined;
|
|
119
119
|
}
|
|
120
120
|
// Return the Prisma filter.
|
|
121
121
|
return {
|
|
122
|
-
equals:
|
|
122
|
+
equals: input.equals,
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
|
-
* Maps the GraphQL nested date time filter to a Prisma neseted date time filter.
|
|
128
|
-
* @param
|
|
127
|
+
* Maps the GraphQL nested date time filter input to a Prisma neseted date time filter.
|
|
128
|
+
* @param input The GraphQL filter input.
|
|
129
129
|
* @returns The Prisma filter.
|
|
130
130
|
*/
|
|
131
|
-
const
|
|
132
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
133
|
-
if (
|
|
131
|
+
const graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter = (input) => {
|
|
132
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
133
|
+
if (input === null || input === undefined) {
|
|
134
134
|
return undefined;
|
|
135
135
|
}
|
|
136
136
|
// Return the Prisma filter.
|
|
137
137
|
return {
|
|
138
|
-
equals:
|
|
139
|
-
in:
|
|
140
|
-
notIn:
|
|
141
|
-
lt:
|
|
142
|
-
lte:
|
|
143
|
-
gt:
|
|
144
|
-
gte:
|
|
145
|
-
not:
|
|
138
|
+
equals: input.equals ?? undefined,
|
|
139
|
+
in: input.in?.filter((o) => !!o),
|
|
140
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
141
|
+
lt: input.lt ?? undefined,
|
|
142
|
+
lte: input.lte ?? undefined,
|
|
143
|
+
gt: input.gt ?? undefined,
|
|
144
|
+
gte: input.gte ?? undefined,
|
|
145
|
+
not: graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter(input.not),
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
-
* Maps the GraphQL date time filter to a Prisma date time filter.
|
|
151
|
-
* @param
|
|
150
|
+
* Maps the GraphQL date time filter input to a Prisma date time filter.
|
|
151
|
+
* @param input The GraphQL filter input.
|
|
152
152
|
* @returns The Prisma filter.
|
|
153
153
|
*/
|
|
154
|
-
const
|
|
155
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
156
|
-
if (
|
|
154
|
+
const graphQLDateTimeFilterInputToPrismaDateTimeFilter = (input) => {
|
|
155
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
156
|
+
if (input === null || input === undefined) {
|
|
157
157
|
return undefined;
|
|
158
158
|
}
|
|
159
159
|
// Return the Prisma filter.
|
|
160
160
|
return {
|
|
161
|
-
equals:
|
|
162
|
-
in:
|
|
163
|
-
notIn:
|
|
164
|
-
lt:
|
|
165
|
-
lte:
|
|
166
|
-
gt:
|
|
167
|
-
gte:
|
|
168
|
-
not:
|
|
161
|
+
equals: input.equals ?? undefined,
|
|
162
|
+
in: input.in?.filter((o) => !!o),
|
|
163
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
164
|
+
lt: input.lt ?? undefined,
|
|
165
|
+
lte: input.lte ?? undefined,
|
|
166
|
+
gt: input.gt ?? undefined,
|
|
167
|
+
gte: input.gte ?? undefined,
|
|
168
|
+
not: graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter(input.not),
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
* Maps the GraphQL nested date time nullable filter to a Prisma nested date time nullable filter.
|
|
174
|
-
* @param
|
|
173
|
+
* Maps the GraphQL nested date time nullable filter input to a Prisma nested date time nullable filter.
|
|
174
|
+
* @param input The GraphQL filter input.
|
|
175
175
|
* @returns The Prisma filter.
|
|
176
176
|
*/
|
|
177
|
-
const
|
|
178
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
179
|
-
if (
|
|
177
|
+
const graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter = (input) => {
|
|
178
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
179
|
+
if (input === null || input === undefined) {
|
|
180
180
|
return undefined;
|
|
181
181
|
}
|
|
182
182
|
// Return the Prisma filter.
|
|
183
183
|
return {
|
|
184
|
-
equals:
|
|
185
|
-
in:
|
|
186
|
-
notIn:
|
|
187
|
-
lt:
|
|
188
|
-
lte:
|
|
189
|
-
gt:
|
|
190
|
-
gte:
|
|
191
|
-
not:
|
|
184
|
+
equals: input.equals,
|
|
185
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
186
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
187
|
+
lt: input.lt ?? undefined,
|
|
188
|
+
lte: input.lte ?? undefined,
|
|
189
|
+
gt: input.gt ?? undefined,
|
|
190
|
+
gte: input.gte ?? undefined,
|
|
191
|
+
not: input.not ? graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter(input.not) : input.not,
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* Maps the GraphQL date time nullable filter to the Prisma date time nullable filter.
|
|
197
|
-
* @param
|
|
196
|
+
* Maps the GraphQL date time nullable filter input to the Prisma date time nullable filter.
|
|
197
|
+
* @param input The GraphQL filter input.
|
|
198
198
|
* @returns The Prisma filter.
|
|
199
199
|
*/
|
|
200
|
-
const
|
|
201
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
202
|
-
if (
|
|
200
|
+
const graphQLDateTimeNullableFilterInputToPrismaDateTimeNullableFilter = (input) => {
|
|
201
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
202
|
+
if (input === null || input === undefined) {
|
|
203
203
|
return undefined;
|
|
204
204
|
}
|
|
205
205
|
// Return the Prisma filter.
|
|
206
206
|
return {
|
|
207
|
-
equals:
|
|
208
|
-
in:
|
|
209
|
-
notIn:
|
|
210
|
-
lt:
|
|
211
|
-
lte:
|
|
212
|
-
gt:
|
|
213
|
-
gte:
|
|
214
|
-
not:
|
|
207
|
+
equals: input.equals,
|
|
208
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
209
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
210
|
+
lt: input.lt ?? undefined,
|
|
211
|
+
lte: input.lte ?? undefined,
|
|
212
|
+
gt: input.gt ?? undefined,
|
|
213
|
+
gte: input.gte ?? undefined,
|
|
214
|
+
not: input.not ? graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter(input.not) : input.not,
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
|
-
* Maps the GraphQL nested float filter to a Prisma nested float filter.
|
|
220
|
-
* @param
|
|
219
|
+
* Maps the GraphQL nested float filter input to a Prisma nested float filter.
|
|
220
|
+
* @param input The GraphQL filter input.
|
|
221
221
|
* @returns The Prisma filter.
|
|
222
222
|
*/
|
|
223
|
-
const
|
|
224
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
225
|
-
if (
|
|
223
|
+
const graphQLNestedFloatFilterInputToPrismaNestedFloatFilter = (input) => {
|
|
224
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
225
|
+
if (input === null || input === undefined) {
|
|
226
226
|
return undefined;
|
|
227
227
|
}
|
|
228
228
|
// Return the Prisma filter.
|
|
229
229
|
return {
|
|
230
|
-
equals:
|
|
231
|
-
in:
|
|
232
|
-
notIn:
|
|
233
|
-
lt:
|
|
234
|
-
lte:
|
|
235
|
-
gt:
|
|
236
|
-
gte:
|
|
237
|
-
not:
|
|
230
|
+
equals: input.equals ?? undefined,
|
|
231
|
+
in: input.in?.filter((o) => !!o),
|
|
232
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
233
|
+
lt: input.lt ?? undefined,
|
|
234
|
+
lte: input.lte ?? undefined,
|
|
235
|
+
gt: input.gt ?? undefined,
|
|
236
|
+
gte: input.gte ?? undefined,
|
|
237
|
+
not: graphQLNestedFloatFilterInputToPrismaNestedFloatFilter(input.not),
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
|
-
* Maps the GraphQL float filter to a Prisma float filter.
|
|
243
|
-
* @param
|
|
242
|
+
* Maps the GraphQL float filter input to a Prisma float filter.
|
|
243
|
+
* @param input The GraphQL filter input.
|
|
244
244
|
* @returns The Prisma filter.
|
|
245
245
|
*/
|
|
246
|
-
const
|
|
247
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
248
|
-
if (
|
|
246
|
+
const graphQLFloatFilterInputToPrismaFloatFilter = (input) => {
|
|
247
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
248
|
+
if (input === null || input === undefined) {
|
|
249
249
|
return undefined;
|
|
250
250
|
}
|
|
251
251
|
// Return the Prisma filter.
|
|
252
252
|
return {
|
|
253
|
-
equals:
|
|
254
|
-
in:
|
|
255
|
-
notIn:
|
|
256
|
-
lt:
|
|
257
|
-
lte:
|
|
258
|
-
gt:
|
|
259
|
-
gte:
|
|
260
|
-
not:
|
|
253
|
+
equals: input.equals ?? undefined,
|
|
254
|
+
in: input.in?.filter((o) => !!o),
|
|
255
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
256
|
+
lt: input.lt ?? undefined,
|
|
257
|
+
lte: input.lte ?? undefined,
|
|
258
|
+
gt: input.gt ?? undefined,
|
|
259
|
+
gte: input.gte ?? undefined,
|
|
260
|
+
not: graphQLNestedFloatFilterInputToPrismaNestedFloatFilter(input.not),
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
|
-
* Maps the GraphQL nested float nullable filter to a Prisma nested float nullable filter.
|
|
266
|
-
* @param
|
|
265
|
+
* Maps the GraphQL nested float nullable filter input to a Prisma nested float nullable filter.
|
|
266
|
+
* @param input The GraphQL filter.
|
|
267
267
|
* @returns The Prisma filter.
|
|
268
268
|
*/
|
|
269
|
-
const
|
|
270
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
271
|
-
if (
|
|
269
|
+
const graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter = (input) => {
|
|
270
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
271
|
+
if (input === null || input === undefined) {
|
|
272
272
|
return undefined;
|
|
273
273
|
}
|
|
274
274
|
// Return the Prisma filter.
|
|
275
275
|
return {
|
|
276
|
-
equals:
|
|
277
|
-
in:
|
|
278
|
-
notIn:
|
|
279
|
-
lt:
|
|
280
|
-
lte:
|
|
281
|
-
gt:
|
|
282
|
-
gte:
|
|
283
|
-
not:
|
|
276
|
+
equals: input.equals,
|
|
277
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
278
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
279
|
+
lt: input.lt ?? undefined,
|
|
280
|
+
lte: input.lte ?? undefined,
|
|
281
|
+
gt: input.gt ?? undefined,
|
|
282
|
+
gte: input.gte ?? undefined,
|
|
283
|
+
not: input.not ? graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter(input.not) : input.not,
|
|
284
284
|
};
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
|
-
* Maps the GraphQL float nullable filter to a Prisma float nullable filter.
|
|
289
|
-
* @param
|
|
288
|
+
* Maps the GraphQL float nullable filter input to a Prisma float nullable filter.
|
|
289
|
+
* @param input The GraphQL filter input.
|
|
290
290
|
* @returns The Prisma filter.
|
|
291
291
|
*/
|
|
292
|
-
const
|
|
293
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
294
|
-
if (
|
|
292
|
+
const graphQLFloatNullableFilterInputToPrismaFloatNullableFilter = (input) => {
|
|
293
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
294
|
+
if (input === null || input === undefined) {
|
|
295
295
|
return undefined;
|
|
296
296
|
}
|
|
297
297
|
// Return the Prisma filter.
|
|
298
298
|
return {
|
|
299
|
-
equals:
|
|
300
|
-
in:
|
|
301
|
-
notIn:
|
|
302
|
-
lt:
|
|
303
|
-
lte:
|
|
304
|
-
gt:
|
|
305
|
-
gte:
|
|
306
|
-
not:
|
|
299
|
+
equals: input.equals,
|
|
300
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
301
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
302
|
+
lt: input.lt ?? undefined,
|
|
303
|
+
lte: input.lte ?? undefined,
|
|
304
|
+
gt: input.gt ?? undefined,
|
|
305
|
+
gte: input.gte ?? undefined,
|
|
306
|
+
not: input.not ? graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter(input.not) : input.not,
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
|
-
* Maps the GraphQL nested id filter to the Prisma nested string filter.
|
|
312
|
-
* @param
|
|
311
|
+
* Maps the GraphQL nested id filter input to the Prisma nested string filter.
|
|
312
|
+
* @param input The GraphQL filter input.
|
|
313
313
|
* @returns The Prisma filter.
|
|
314
314
|
*/
|
|
315
|
-
const
|
|
316
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
317
|
-
if (
|
|
315
|
+
const graphQLNestedIdFilterInputToPrismaNestedStringFilter = (input) => {
|
|
316
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
317
|
+
if (input === null || input === undefined) {
|
|
318
318
|
return undefined;
|
|
319
319
|
}
|
|
320
320
|
// Return the Prisma filter.
|
|
321
321
|
return {
|
|
322
|
-
contains:
|
|
323
|
-
endsWith:
|
|
324
|
-
equals:
|
|
325
|
-
gt:
|
|
326
|
-
gte:
|
|
327
|
-
in:
|
|
328
|
-
lt:
|
|
329
|
-
lte:
|
|
330
|
-
not:
|
|
331
|
-
notIn:
|
|
332
|
-
startsWith:
|
|
322
|
+
contains: input.contains ?? undefined,
|
|
323
|
+
endsWith: input.endsWith ?? undefined,
|
|
324
|
+
equals: input.equals ?? undefined,
|
|
325
|
+
gt: input.gt ?? undefined,
|
|
326
|
+
gte: input.gte ?? undefined,
|
|
327
|
+
in: input.in?.filter((o) => !!o),
|
|
328
|
+
lt: input.lt ?? undefined,
|
|
329
|
+
lte: input.lte ?? undefined,
|
|
330
|
+
not: graphQLNestedIdFilterInputToPrismaNestedStringFilter(input.not),
|
|
331
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
332
|
+
startsWith: input.startsWith ?? undefined,
|
|
333
333
|
};
|
|
334
334
|
};
|
|
335
335
|
|
|
@@ -360,280 +360,280 @@ const graphQLQueryModeToPrismaQueryMode = (queryMode) => {
|
|
|
360
360
|
};
|
|
361
361
|
|
|
362
362
|
/**
|
|
363
|
-
* Maps the GraphQL id filter to the Prisma string filter.
|
|
364
|
-
* @param
|
|
363
|
+
* Maps the GraphQL id filter input to the Prisma string filter.
|
|
364
|
+
* @param input The GraphQL filter input.
|
|
365
365
|
* @returns The Prisma filter.
|
|
366
366
|
*/
|
|
367
|
-
const
|
|
368
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
369
|
-
if (
|
|
367
|
+
const graphQLIdFilterInputToPrismaStringFilter = (input) => {
|
|
368
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
369
|
+
if (input === null || input === undefined) {
|
|
370
370
|
return undefined;
|
|
371
371
|
}
|
|
372
372
|
// Return the Prisma filter.
|
|
373
373
|
return {
|
|
374
|
-
contains:
|
|
375
|
-
endsWith:
|
|
376
|
-
equals:
|
|
377
|
-
gt:
|
|
378
|
-
gte:
|
|
379
|
-
in:
|
|
380
|
-
lt:
|
|
381
|
-
lte:
|
|
382
|
-
mode: graphQLQueryModeToPrismaQueryMode(
|
|
383
|
-
not:
|
|
384
|
-
notIn:
|
|
385
|
-
startsWith:
|
|
374
|
+
contains: input.contains ?? undefined,
|
|
375
|
+
endsWith: input.endsWith ?? undefined,
|
|
376
|
+
equals: input.equals ?? undefined,
|
|
377
|
+
gt: input.gt ?? undefined,
|
|
378
|
+
gte: input.gte ?? undefined,
|
|
379
|
+
in: input.in?.filter((o) => !!o),
|
|
380
|
+
lt: input.lt ?? undefined,
|
|
381
|
+
lte: input.lte ?? undefined,
|
|
382
|
+
mode: graphQLQueryModeToPrismaQueryMode(input.mode),
|
|
383
|
+
not: graphQLNestedIdFilterInputToPrismaNestedStringFilter(input.not),
|
|
384
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
385
|
+
startsWith: input.startsWith ?? undefined,
|
|
386
386
|
};
|
|
387
387
|
};
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
|
-
* Maps the GraphQL nested id nullable filter to the Prisma nested string nullable filter.
|
|
391
|
-
* @param
|
|
390
|
+
* Maps the GraphQL nested id nullable filter input to the Prisma nested string nullable filter.
|
|
391
|
+
* @param input The GraphQL filter input.
|
|
392
392
|
* @returns The Prisma filter.
|
|
393
393
|
*/
|
|
394
|
-
const
|
|
395
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
396
|
-
if (
|
|
394
|
+
const graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter = (input) => {
|
|
395
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
396
|
+
if (input === null || input === undefined) {
|
|
397
397
|
return undefined;
|
|
398
398
|
}
|
|
399
399
|
// Return the Prisma filter.
|
|
400
400
|
return {
|
|
401
|
-
contains:
|
|
402
|
-
endsWith:
|
|
403
|
-
equals:
|
|
404
|
-
gt:
|
|
405
|
-
gte:
|
|
406
|
-
in:
|
|
407
|
-
lt:
|
|
408
|
-
lte:
|
|
409
|
-
not:
|
|
410
|
-
notIn:
|
|
411
|
-
startsWith:
|
|
401
|
+
contains: input.contains ?? undefined,
|
|
402
|
+
endsWith: input.endsWith ?? undefined,
|
|
403
|
+
equals: input.equals,
|
|
404
|
+
gt: input.gt ?? undefined,
|
|
405
|
+
gte: input.gte ?? undefined,
|
|
406
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
407
|
+
lt: input.lt ?? undefined,
|
|
408
|
+
lte: input.lte ?? undefined,
|
|
409
|
+
not: input.not ? graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter(input.not) : input.not,
|
|
410
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
411
|
+
startsWith: input.startsWith ?? undefined,
|
|
412
412
|
};
|
|
413
413
|
};
|
|
414
414
|
|
|
415
415
|
/**
|
|
416
|
-
* Maps the GraphQL id nullable filter to the Prisma string nullable filter.
|
|
417
|
-
* @param
|
|
416
|
+
* Maps the GraphQL id nullable filter input to the Prisma string nullable filter.
|
|
417
|
+
* @param input The GraphQL filter input.
|
|
418
418
|
* @returns The Prisma string.
|
|
419
419
|
*/
|
|
420
|
-
const
|
|
421
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
422
|
-
if (
|
|
420
|
+
const graphQLIdNullableFilterInputToPrismaStringNullableFilter = (input) => {
|
|
421
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
422
|
+
if (input === null || input === undefined) {
|
|
423
423
|
return undefined;
|
|
424
424
|
}
|
|
425
425
|
// Return the Prisma filter.
|
|
426
426
|
return {
|
|
427
|
-
contains:
|
|
428
|
-
endsWith:
|
|
429
|
-
equals:
|
|
430
|
-
gt:
|
|
431
|
-
gte:
|
|
432
|
-
in:
|
|
433
|
-
lt:
|
|
434
|
-
lte:
|
|
435
|
-
mode: graphQLQueryModeToPrismaQueryMode(
|
|
436
|
-
not:
|
|
437
|
-
notIn:
|
|
438
|
-
startsWith:
|
|
427
|
+
contains: input.contains ?? undefined,
|
|
428
|
+
endsWith: input.endsWith ?? undefined,
|
|
429
|
+
equals: input.equals,
|
|
430
|
+
gt: input.gt ?? undefined,
|
|
431
|
+
gte: input.gte ?? undefined,
|
|
432
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
433
|
+
lt: input.lt ?? undefined,
|
|
434
|
+
lte: input.lte ?? undefined,
|
|
435
|
+
mode: graphQLQueryModeToPrismaQueryMode(input.mode),
|
|
436
|
+
not: input.not ? graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter(input.not) : input.not,
|
|
437
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
438
|
+
startsWith: input.startsWith ?? undefined,
|
|
439
439
|
};
|
|
440
440
|
};
|
|
441
441
|
|
|
442
442
|
/**
|
|
443
|
-
* Maps the GraphQL nested int filter to a Prisma nested int filter.
|
|
444
|
-
* @param
|
|
443
|
+
* Maps the GraphQL nested int filter input to a Prisma nested int filter.
|
|
444
|
+
* @param input The GraphQL filter input.
|
|
445
445
|
* @returns The Prisma filter.
|
|
446
446
|
*/
|
|
447
|
-
const
|
|
448
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
449
|
-
if (
|
|
447
|
+
const graphQLNestedIntFilterInputToPrismaNestedIntFilter = (input) => {
|
|
448
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
449
|
+
if (input === null || input === undefined) {
|
|
450
450
|
return undefined;
|
|
451
451
|
}
|
|
452
452
|
// Return the Prisma filter.
|
|
453
453
|
return {
|
|
454
|
-
equals:
|
|
455
|
-
in:
|
|
456
|
-
notIn:
|
|
457
|
-
lt:
|
|
458
|
-
lte:
|
|
459
|
-
gt:
|
|
460
|
-
gte:
|
|
461
|
-
not:
|
|
454
|
+
equals: input.equals ?? undefined,
|
|
455
|
+
in: input.in?.filter((o) => !!o),
|
|
456
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
457
|
+
lt: input.lt ?? undefined,
|
|
458
|
+
lte: input.lte ?? undefined,
|
|
459
|
+
gt: input.gt ?? undefined,
|
|
460
|
+
gte: input.gte ?? undefined,
|
|
461
|
+
not: graphQLNestedIntFilterInputToPrismaNestedIntFilter(input.not),
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
|
-
* Map the GraphQL int filter to a Prisma int filter.
|
|
467
|
-
* @param
|
|
466
|
+
* Map the GraphQL int filter input to a Prisma int filter.
|
|
467
|
+
* @param input The GraphQL filter input.
|
|
468
468
|
* @returns The Prisma filter.
|
|
469
469
|
*/
|
|
470
|
-
const
|
|
471
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
472
|
-
if (
|
|
470
|
+
const graphQLIntFilterInputToPrismaIntFilter = (input) => {
|
|
471
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
472
|
+
if (input === null || input === undefined) {
|
|
473
473
|
return undefined;
|
|
474
474
|
}
|
|
475
475
|
// Return the Prisma filter.
|
|
476
476
|
return {
|
|
477
|
-
equals:
|
|
478
|
-
in:
|
|
479
|
-
notIn:
|
|
480
|
-
lt:
|
|
481
|
-
lte:
|
|
482
|
-
gt:
|
|
483
|
-
gte:
|
|
484
|
-
not:
|
|
477
|
+
equals: input.equals ?? undefined,
|
|
478
|
+
in: input.in?.filter((o) => !!o),
|
|
479
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
480
|
+
lt: input.lt ?? undefined,
|
|
481
|
+
lte: input.lte ?? undefined,
|
|
482
|
+
gt: input.gt ?? undefined,
|
|
483
|
+
gte: input.gte ?? undefined,
|
|
484
|
+
not: graphQLNestedIntFilterInputToPrismaNestedIntFilter(input.not),
|
|
485
485
|
};
|
|
486
486
|
};
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
|
-
* Maps the GraphQL nested int nullable filter to a Prisma nested int nullable filter.
|
|
490
|
-
* @param
|
|
489
|
+
* Maps the GraphQL nested int nullable filter input to a Prisma nested int nullable filter.
|
|
490
|
+
* @param input The GraphQL filter input.
|
|
491
491
|
* @returns The Prisma filter.
|
|
492
492
|
*/
|
|
493
|
-
const
|
|
494
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
495
|
-
if (
|
|
493
|
+
const graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter = (input) => {
|
|
494
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
495
|
+
if (input === null || input === undefined) {
|
|
496
496
|
return undefined;
|
|
497
497
|
}
|
|
498
498
|
// Return the Prisma filter.
|
|
499
499
|
return {
|
|
500
|
-
equals:
|
|
501
|
-
in:
|
|
502
|
-
notIn:
|
|
503
|
-
lt:
|
|
504
|
-
lte:
|
|
505
|
-
gt:
|
|
506
|
-
gte:
|
|
507
|
-
not:
|
|
500
|
+
equals: input.equals,
|
|
501
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
502
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
503
|
+
lt: input.lt ?? undefined,
|
|
504
|
+
lte: input.lte ?? undefined,
|
|
505
|
+
gt: input.gt ?? undefined,
|
|
506
|
+
gte: input.gte ?? undefined,
|
|
507
|
+
not: input.not ? graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter(input.not) : input.not,
|
|
508
508
|
};
|
|
509
509
|
};
|
|
510
510
|
|
|
511
511
|
/**
|
|
512
|
-
* Maps the GraphQL int nullable filter to a Prisma int nullable filter.
|
|
513
|
-
* @param
|
|
512
|
+
* Maps the GraphQL int nullable filter input to a Prisma int nullable filter.
|
|
513
|
+
* @param input The GraphQL filter input.
|
|
514
514
|
* @returns The Prisma filter.
|
|
515
515
|
*/
|
|
516
|
-
const
|
|
517
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
518
|
-
if (
|
|
516
|
+
const graphQLIntNullableFilterInputToPrismaIntNullableFilter = (input) => {
|
|
517
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
518
|
+
if (input === null || input === undefined) {
|
|
519
519
|
return undefined;
|
|
520
520
|
}
|
|
521
521
|
// Return the Prisma filter.
|
|
522
522
|
return {
|
|
523
|
-
equals:
|
|
524
|
-
in:
|
|
525
|
-
notIn:
|
|
526
|
-
lt:
|
|
527
|
-
lte:
|
|
528
|
-
gt:
|
|
529
|
-
gte:
|
|
530
|
-
not:
|
|
523
|
+
equals: input.equals,
|
|
524
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
525
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
526
|
+
lt: input.lt ?? undefined,
|
|
527
|
+
lte: input.lte ?? undefined,
|
|
528
|
+
gt: input.gt ?? undefined,
|
|
529
|
+
gte: input.gte ?? undefined,
|
|
530
|
+
not: input.not ? graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter(input.not) : input.not,
|
|
531
531
|
};
|
|
532
532
|
};
|
|
533
533
|
|
|
534
534
|
/**
|
|
535
|
-
* Maps the GraphQL nested string filter to a Prisma nested string filter.
|
|
536
|
-
* @param
|
|
535
|
+
* Maps the GraphQL nested string filter input to a Prisma nested string filter.
|
|
536
|
+
* @param input The GraphQL filter input.
|
|
537
537
|
* @returns The Prisma filter.
|
|
538
538
|
*/
|
|
539
|
-
const
|
|
540
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
541
|
-
if (
|
|
539
|
+
const graphQLNestedStringFilterInputToPrismaNestedStringFilter = (input) => {
|
|
540
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
541
|
+
if (input === null || input === undefined) {
|
|
542
542
|
return undefined;
|
|
543
543
|
}
|
|
544
544
|
// Return the Prisma filter.
|
|
545
545
|
return {
|
|
546
|
-
equals:
|
|
547
|
-
in:
|
|
548
|
-
notIn:
|
|
549
|
-
lt:
|
|
550
|
-
lte:
|
|
551
|
-
gt:
|
|
552
|
-
gte:
|
|
553
|
-
contains:
|
|
554
|
-
startsWith:
|
|
555
|
-
endsWith:
|
|
556
|
-
not:
|
|
546
|
+
equals: input.equals ?? undefined,
|
|
547
|
+
in: input.in?.filter((o) => !!o),
|
|
548
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
549
|
+
lt: input.lt ?? undefined,
|
|
550
|
+
lte: input.lte ?? undefined,
|
|
551
|
+
gt: input.gt ?? undefined,
|
|
552
|
+
gte: input.gte ?? undefined,
|
|
553
|
+
contains: input.contains ?? undefined,
|
|
554
|
+
startsWith: input.startsWith ?? undefined,
|
|
555
|
+
endsWith: input.endsWith ?? undefined,
|
|
556
|
+
not: graphQLNestedStringFilterInputToPrismaNestedStringFilter(input.not),
|
|
557
557
|
};
|
|
558
558
|
};
|
|
559
559
|
|
|
560
560
|
/**
|
|
561
|
-
* Maps the GraphQL nested string nullable filter to a Prisma nested string nullable filter.
|
|
562
|
-
* @param
|
|
561
|
+
* Maps the GraphQL nested string nullable filter input to a Prisma nested string nullable filter.
|
|
562
|
+
* @param input The GraphQL filter input.
|
|
563
563
|
* @returns The Prisma afilter.
|
|
564
564
|
*/
|
|
565
|
-
const
|
|
566
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
567
|
-
if (
|
|
565
|
+
const graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter = (input) => {
|
|
566
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
567
|
+
if (input === null || input === undefined) {
|
|
568
568
|
return undefined;
|
|
569
569
|
}
|
|
570
570
|
// Return the Prisma filter.
|
|
571
571
|
return {
|
|
572
|
-
equals:
|
|
573
|
-
in:
|
|
574
|
-
notIn:
|
|
575
|
-
lt:
|
|
576
|
-
lte:
|
|
577
|
-
gt:
|
|
578
|
-
gte:
|
|
579
|
-
contains:
|
|
580
|
-
startsWith:
|
|
581
|
-
endsWith:
|
|
582
|
-
not:
|
|
572
|
+
equals: input.equals,
|
|
573
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
574
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
575
|
+
lt: input.lt ?? undefined,
|
|
576
|
+
lte: input.lte ?? undefined,
|
|
577
|
+
gt: input.gt ?? undefined,
|
|
578
|
+
gte: input.gte ?? undefined,
|
|
579
|
+
contains: input.contains ?? undefined,
|
|
580
|
+
startsWith: input.startsWith ?? undefined,
|
|
581
|
+
endsWith: input.endsWith ?? undefined,
|
|
582
|
+
not: input.not ? graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter(input.not) : input.not,
|
|
583
583
|
};
|
|
584
584
|
};
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
|
-
* Maps the GraphQL string filter to a Prisma string filter.
|
|
588
|
-
* @param
|
|
587
|
+
* Maps the GraphQL string filter input to a Prisma string filter.
|
|
588
|
+
* @param input The GraphQL filter input.
|
|
589
589
|
* @returns The Prisma filter.
|
|
590
590
|
*/
|
|
591
|
-
const
|
|
592
|
-
// If the GraphQL filter is null or undefined, return undefined.
|
|
593
|
-
if (
|
|
591
|
+
const graphQLStringFilterInputToPrismaStringFilter = (input) => {
|
|
592
|
+
// If the GraphQL filter input is null or undefined, return undefined.
|
|
593
|
+
if (input === null || input === undefined) {
|
|
594
594
|
return undefined;
|
|
595
595
|
}
|
|
596
596
|
// Return the Prisma filter.
|
|
597
597
|
return {
|
|
598
|
-
equals:
|
|
599
|
-
in:
|
|
600
|
-
notIn:
|
|
601
|
-
lt:
|
|
602
|
-
lte:
|
|
603
|
-
gt:
|
|
604
|
-
gte:
|
|
605
|
-
contains:
|
|
606
|
-
startsWith:
|
|
607
|
-
endsWith:
|
|
608
|
-
mode: graphQLQueryModeToPrismaQueryMode(
|
|
609
|
-
not:
|
|
598
|
+
equals: input.equals ?? undefined,
|
|
599
|
+
in: input.in?.filter((o) => !!o),
|
|
600
|
+
notIn: input.notIn?.filter((o) => !!o),
|
|
601
|
+
lt: input.lt ?? undefined,
|
|
602
|
+
lte: input.lte ?? undefined,
|
|
603
|
+
gt: input.gt ?? undefined,
|
|
604
|
+
gte: input.gte ?? undefined,
|
|
605
|
+
contains: input.contains ?? undefined,
|
|
606
|
+
startsWith: input.startsWith ?? undefined,
|
|
607
|
+
endsWith: input.endsWith ?? undefined,
|
|
608
|
+
mode: graphQLQueryModeToPrismaQueryMode(input.mode),
|
|
609
|
+
not: graphQLNestedStringFilterInputToPrismaNestedStringFilter(input.not),
|
|
610
610
|
};
|
|
611
611
|
};
|
|
612
612
|
|
|
613
613
|
/**
|
|
614
|
-
* Maps the GraphQL string nullable filter to a Prisma string nullable filter.
|
|
615
|
-
* @param
|
|
614
|
+
* Maps the GraphQL string nullable filter input to a Prisma string nullable filter.
|
|
615
|
+
* @param input The GraphQL filter.
|
|
616
616
|
* @returns The Prisma filter.
|
|
617
617
|
*/
|
|
618
|
-
const
|
|
619
|
-
// If the GraphQL filter is null or undefined, return undefined
|
|
620
|
-
if (
|
|
618
|
+
const graphQLStringNullableFilterInputToPrismaStringNullableFilter = (input) => {
|
|
619
|
+
// If the GraphQL filter input is null or undefined, return undefined
|
|
620
|
+
if (input === null || input === undefined) {
|
|
621
621
|
return undefined;
|
|
622
622
|
}
|
|
623
623
|
// Return the Prisma filter
|
|
624
624
|
return {
|
|
625
|
-
equals:
|
|
626
|
-
in:
|
|
627
|
-
notIn:
|
|
628
|
-
lt:
|
|
629
|
-
lte:
|
|
630
|
-
gt:
|
|
631
|
-
gte:
|
|
632
|
-
contains:
|
|
633
|
-
startsWith:
|
|
634
|
-
endsWith:
|
|
635
|
-
mode: graphQLQueryModeToPrismaQueryMode(
|
|
636
|
-
not:
|
|
625
|
+
equals: input.equals,
|
|
626
|
+
in: input.in ? input.in.filter((o) => !!o) : input.in,
|
|
627
|
+
notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
|
|
628
|
+
lt: input.lt ?? undefined,
|
|
629
|
+
lte: input.lte ?? undefined,
|
|
630
|
+
gt: input.gt ?? undefined,
|
|
631
|
+
gte: input.gte ?? undefined,
|
|
632
|
+
contains: input.contains ?? undefined,
|
|
633
|
+
startsWith: input.startsWith ?? undefined,
|
|
634
|
+
endsWith: input.endsWith ?? undefined,
|
|
635
|
+
mode: graphQLQueryModeToPrismaQueryMode(input.mode),
|
|
636
|
+
not: input.not ? graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter(input.not) : input.not,
|
|
637
637
|
};
|
|
638
638
|
};
|
|
639
639
|
|
|
@@ -652,30 +652,30 @@ const graphQLSortOrderToPrismaSortOrder = (sortOrder) => {
|
|
|
652
652
|
};
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* Maps the GraphQL order
|
|
656
|
-
* @param
|
|
657
|
-
* @returns The Prisma order
|
|
655
|
+
* Maps the GraphQL order input to a Prisma order input.
|
|
656
|
+
* @param input The GraphQL order input.
|
|
657
|
+
* @returns The Prisma order input.
|
|
658
658
|
*/
|
|
659
|
-
const
|
|
659
|
+
const graphQLOrderInputToPrismaOrderInput = (input) => {
|
|
660
660
|
// Return the Prisma order by.
|
|
661
|
-
return Object.fromEntries(Object.entries(
|
|
661
|
+
return Object.fromEntries(Object.entries(input).map(([key, value]) => {
|
|
662
662
|
return [key, graphQLSortOrderToPrismaSortOrder(value)];
|
|
663
663
|
}));
|
|
664
664
|
};
|
|
665
665
|
|
|
666
666
|
/**
|
|
667
|
-
* Maps the GraphQL order
|
|
668
|
-
* @param
|
|
669
|
-
* @returns The Prisma order
|
|
667
|
+
* Maps the GraphQL order inputs to the Prisma order inputs.
|
|
668
|
+
* @param inputs The GraphQL order inputs.
|
|
669
|
+
* @returns The Prisma order inputs.
|
|
670
670
|
*/
|
|
671
|
-
const
|
|
672
|
-
// If the GraphQL order
|
|
673
|
-
if (
|
|
671
|
+
const graphQLOrderInputsToPrismaOrderInputs = (inputs) => {
|
|
672
|
+
// If the GraphQL order inputs is null or undefined, return undefined.
|
|
673
|
+
if (inputs === null || inputs === undefined) {
|
|
674
674
|
return undefined;
|
|
675
675
|
}
|
|
676
|
-
// Return the Prisma order
|
|
677
|
-
return
|
|
676
|
+
// Return the Prisma order inputs.
|
|
677
|
+
return inputs.map(graphQLOrderInputToPrismaOrderInput);
|
|
678
678
|
};
|
|
679
679
|
|
|
680
|
-
export {
|
|
680
|
+
export { graphQLBooleanFilterInputToPrismaBooleanFilter, graphQLBooleanNullableFilterInputToPrismaBooleanNullableFilter, graphQLCursorToPrismaWhereInput, graphQLDateTimeFilterInputToPrismaDateTimeFilter, graphQLDateTimeNullableFilterInputToPrismaDateTimeNullableFilter, graphQLFloatFilterInputToPrismaFloatFilter, graphQLFloatNullableFilterInputToPrismaFloatNullableFilter, graphQLIdFilterInputToPrismaStringFilter, graphQLIdNullableFilterInputToPrismaStringNullableFilter, graphQLIntFilterInputToPrismaIntFilter, graphQLIntNullableFilterInputToPrismaIntNullableFilter, graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter, graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter, graphQLNestedFloatFilterInputToPrismaNestedFloatFilter, graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter, graphQLNestedIdFilterInputToPrismaNestedStringFilter, graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter, graphQLNestedIntFilterInputToPrismaNestedIntFilter, graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter, graphQLNestedStringFilterInputToPrismaNestedStringFilter, graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter, graphQLOrderInputToPrismaOrderInput, graphQLOrderInputsToPrismaOrderInputs, graphQLQueryModeToPrismaQueryMode, graphQLSortOrderToPrismaSortOrder, graphQLStringFilterInputToPrismaStringFilter, graphQLStringNullableFilterInputToPrismaStringNullableFilter };
|
|
681
681
|
//# sourceMappingURL=index.esm.js.map
|