@jest-games-org/backend-package-graphql-to-prisma-helpers 1.0.4 → 1.0.6

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.
Files changed (62) hide show
  1. package/dist/index.esm.js +166 -230
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +192 -256
  4. package/dist/index.js.map +1 -1
  5. package/dist/modules/cursor/helpers/index.d.ts +1 -1
  6. package/dist/modules/cursor/helpers/prismaWhereInputFromGraphQLCursor.d.ts +9 -0
  7. package/dist/modules/filter/helpers/index.d.ts +23 -23
  8. package/dist/modules/filter/helpers/prismaBooleanFilterFromGraphQLBooleanFilterInput.d.ts +8 -0
  9. package/dist/modules/filter/helpers/prismaBooleanNullableFilterFromGraphQLBooleanNullableFilterInput.d.ts +8 -0
  10. package/dist/modules/filter/helpers/prismaDateTimeFilterFromGraphQLDateTimeFilterInput.d.ts +8 -0
  11. package/dist/modules/filter/helpers/prismaDateTimeNullableFilterFromGraphQLDateTimeNullableFilterInput.d.ts +8 -0
  12. package/dist/modules/filter/helpers/prismaFloatFilterFromGraphQLFloatFilterInput.d.ts +8 -0
  13. package/dist/modules/filter/helpers/prismaFloatNullableFilterFromGraphQLFloatNullableFilterInput.d.ts +8 -0
  14. package/dist/modules/filter/helpers/prismaIntFilterFromGraphQLIntFilterInput.d.ts +8 -0
  15. package/dist/modules/filter/helpers/prismaIntNullableFilterFromGraphQLIntNullableFilterInput.d.ts +8 -0
  16. package/dist/modules/filter/helpers/prismaNestedDateTimeFilterFromGraphQLNestedDateTimeFilterInput.d.ts +8 -0
  17. package/dist/modules/filter/helpers/prismaNestedDateTimeNullableFilterFromGraphQLNestedDateTimeNullableFilterInput.d.ts +8 -0
  18. package/dist/modules/filter/helpers/prismaNestedFloatFilterFromGraphQLNestedFloatFilterInput.d.ts +8 -0
  19. package/dist/modules/filter/helpers/prismaNestedFloatNullableFilterFromGraphQLNestedFloatNullableFilterInput.d.ts +8 -0
  20. package/dist/modules/filter/helpers/prismaNestedIntFilterFromGraphQLNestedIntFilterInput.d.ts +8 -0
  21. package/dist/modules/filter/helpers/prismaNestedIntNullableFilterFromGraphQLNestedIntNullableFilterInput.d.ts +8 -0
  22. package/dist/modules/filter/helpers/prismaNestedStringFilterFromGraphQLNestedIdFilterInput.d.ts +8 -0
  23. package/dist/modules/filter/helpers/prismaNestedStringFilterFromGraphQLNestedStringFilterInput.d.ts +8 -0
  24. package/dist/modules/filter/helpers/prismaNestedStringNullableFilterFromGraphQLNestedIdNullableFilterInput.d.ts +8 -0
  25. package/dist/modules/filter/helpers/prismaNestedStringNullableFilterFromGraphQLNestedStringNullableFilterInput.d.ts +8 -0
  26. package/dist/modules/filter/helpers/prismaQueryModeFromGraphQLQueryMode.d.ts +8 -0
  27. package/dist/modules/filter/helpers/prismaStringFilterFromGraphQLIdFilterInput.d.ts +8 -0
  28. package/dist/modules/filter/helpers/prismaStringFilterFromGraphQLStringFilterInput.d.ts +8 -0
  29. package/dist/modules/filter/helpers/prismaStringNullableFilterFromGraphQLIdNullableFilterInput.d.ts +8 -0
  30. package/dist/modules/filter/helpers/prismaStringNullableFilterFromGraphQLStringNullableFilterInput.d.ts +8 -0
  31. package/dist/modules/order/helpers/index.d.ts +3 -3
  32. package/dist/modules/order/helpers/prismaOrderInputFromGraphQLOrderInput.d.ts +9 -0
  33. package/dist/modules/order/helpers/prismaOrderInputsFromGraphQLOrderInputs.d.ts +9 -0
  34. package/dist/modules/order/helpers/prismaSortOrderFromGraphQLSortOrder.d.ts +8 -0
  35. package/package.json +2 -2
  36. package/dist/modules/cursor/helpers/graphQLCursorToPrismaWhereInput.d.ts +0 -9
  37. package/dist/modules/filter/helpers/graphQLBooleanFilterInputToPrismaBooleanFilter.d.ts +0 -8
  38. package/dist/modules/filter/helpers/graphQLBooleanNullableFilterInputToPrismaBooleanNullableFilter.d.ts +0 -8
  39. package/dist/modules/filter/helpers/graphQLDateTimeFilterInputToPrismaDateTimeFilter.d.ts +0 -8
  40. package/dist/modules/filter/helpers/graphQLDateTimeNullableFilterInputToPrismaDateTimeNullableFilter.d.ts +0 -8
  41. package/dist/modules/filter/helpers/graphQLFloatFilterInputToPrismaFloatFilter.d.ts +0 -8
  42. package/dist/modules/filter/helpers/graphQLFloatNullableFilterInputToPrismaFloatNullableFilter.d.ts +0 -8
  43. package/dist/modules/filter/helpers/graphQLIdFilterInputToPrismaStringFilter.d.ts +0 -8
  44. package/dist/modules/filter/helpers/graphQLIdNullableFilterInputToPrismaStringNullableFilter.d.ts +0 -8
  45. package/dist/modules/filter/helpers/graphQLIntFilterInputToPrismaIntFilter.d.ts +0 -8
  46. package/dist/modules/filter/helpers/graphQLIntNullableFilterInputToPrismaIntNullableFilter.d.ts +0 -8
  47. package/dist/modules/filter/helpers/graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter.d.ts +0 -8
  48. package/dist/modules/filter/helpers/graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter.d.ts +0 -8
  49. package/dist/modules/filter/helpers/graphQLNestedFloatFilterInputToPrismaNestedFloatFilter.d.ts +0 -8
  50. package/dist/modules/filter/helpers/graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter.d.ts +0 -8
  51. package/dist/modules/filter/helpers/graphQLNestedIdFilterInputToPrismaNestedStringFilter.d.ts +0 -8
  52. package/dist/modules/filter/helpers/graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter.d.ts +0 -8
  53. package/dist/modules/filter/helpers/graphQLNestedIntFilterInputToPrismaNestedIntFilter.d.ts +0 -8
  54. package/dist/modules/filter/helpers/graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter.d.ts +0 -8
  55. package/dist/modules/filter/helpers/graphQLNestedStringFilterInputToPrismaNestedStringFilter.d.ts +0 -8
  56. package/dist/modules/filter/helpers/graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter.d.ts +0 -8
  57. package/dist/modules/filter/helpers/graphQLQueryModeToPrismaQueryMode.d.ts +0 -8
  58. package/dist/modules/filter/helpers/graphQLStringFilterInputToPrismaStringFilter.d.ts +0 -8
  59. package/dist/modules/filter/helpers/graphQLStringNullableFilterInputToPrismaStringNullableFilter.d.ts +0 -8
  60. package/dist/modules/order/helpers/graphQLOrderInputToPrismaOrderInput.d.ts +0 -9
  61. package/dist/modules/order/helpers/graphQLOrderInputsToPrismaOrderInputs.d.ts +0 -9
  62. package/dist/modules/order/helpers/graphQLSortOrderToPrismaSortOrder.d.ts +0 -8
package/dist/index.js CHANGED
@@ -57,85 +57,62 @@ const decodeCursor = (cursor) => {
57
57
  };
58
58
 
59
59
  /**
60
- * Map the GraphQL cursor to a Prisma where input.
61
- * @param cursor The GraphQL cursor
62
- * @returns The Prisma where input
60
+ * Prisma Where Input From GraphQL Cursor.
61
+ * @param cursor The GraphQL Cursor.
62
+ * @returns The Prisma Where Input.
63
63
  */
64
- const graphQLCursorToPrismaWhereInput = (cursor) => {
65
- // If the cursor is null or undefined, return empty.
64
+ const prismaWhereInputFromGraphQLCursor = (cursor) => {
66
65
  if (!cursor) {
67
66
  return {};
68
67
  }
69
- // Decode the cursor.
70
68
  const { args, data } = decodeCursor(cursor);
71
- // Initialize Prisma where input.
72
69
  let prismaWhereInput = {};
73
- // Iterate over the order by arguments (last to first).
74
70
  for (let i = args.orderBy.length - 1; i >= 0; i--) {
75
- // Check if the index is the last index.
76
71
  const isLast = i === args.orderBy.length - 1;
77
- // Get the order by key and direction.
78
72
  const [key, direction] = Object.entries(args.orderBy[i])[0];
79
- // Check if the direction is ascending.
80
73
  const isAsc = direction === 'asc';
81
- // Get the data value for the order by key.
82
74
  const value = data[key];
83
- // Check if the value is null.
84
75
  const isNull = value === null;
85
- // Get the first OR block.
86
76
  const orBlock1 = isNull ? { [key]: { not: null } } : { [key]: isAsc ? { gt: value } : { lt: value } };
87
- // Get the second OR block.
88
77
  const orBlock2 = isLast ? undefined : { AND: [{ [key]: { equals: value } }, prismaWhereInput] };
89
- // Create the Prisma where input.
90
78
  prismaWhereInput = { OR: [orBlock1, orBlock2].filter((b) => !!b) };
91
79
  }
92
- // Return the Prisma where input.
93
80
  return prismaWhereInput;
94
81
  };
95
82
 
96
83
  /**
97
- * Maps the GraphQL boolean filter input to a Prisma boolean filter.
98
- * @param input The GraphQL filter input.
99
- * @returns The Prisma filter.
84
+ * Prisma Boolean Filter From GraphQL Boolean Filter Input.
85
+ * @param input The GraphQL Boolean Filter Input.
86
+ * @returns The Prisma Boolean Filter.
100
87
  */
101
- const graphQLBooleanFilterInputToPrismaBooleanFilter = (input) => {
102
- // If the GraphQL filter input is null or undefined, return undefined.
103
- if (input === null || input === undefined) {
88
+ const prismaBooleanFilterFromGraphQLBooleanFilterInput = (input) => {
89
+ if (!input) {
104
90
  return undefined;
105
91
  }
106
- // Return the Prisma filter.
107
- return {
108
- equals: input.equals ?? undefined,
109
- };
92
+ return { equals: input.equals ?? undefined };
110
93
  };
111
94
 
112
95
  /**
113
- * Maps the GraphQL boolean nullable filter input to a Prisma boolean nullable filter.
114
- * @param input The GraphQL filter input.
115
- * @returns The Prisma filter.
96
+ * Prisma Boolean Nullable Filter From GraphQL Boolean Nullable Filter Input.
97
+ * @param input The GraphQL Boolean Nullable Filter Input.
98
+ * @returns The Prisma Boolean Nullable Filter.
116
99
  */
117
- const graphQLBooleanNullableFilterInputToPrismaBooleanNullableFilter = (input) => {
118
- // If the GraphQL filter input is null or undefined, return undefined.
119
- if (input === null || input === undefined) {
100
+ const prismaBooleanNullableFilterFromGraphQLBooleanNullableFilterInput = (input) => {
101
+ if (!input) {
120
102
  return undefined;
121
103
  }
122
- // Return the Prisma filter.
123
- return {
124
- equals: input.equals,
125
- };
104
+ return { equals: input.equals };
126
105
  };
127
106
 
128
107
  /**
129
- * Maps the GraphQL nested date time filter input to a Prisma neseted date time filter.
130
- * @param input The GraphQL filter input.
131
- * @returns The Prisma filter.
108
+ * Prisma Nested Date Time Filter From GraphQL Nested Date Time Filter Input.
109
+ * @param input The GraphQL Nested Date Time Filter Input.
110
+ * @returns The Prisma Nested Date Time Filter.
132
111
  */
133
- const graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter = (input) => {
134
- // If the GraphQL filter input is null or undefined, return undefined.
135
- if (input === null || input === undefined) {
112
+ const prismaNestedDateTimeFilterFromGraphQLNestedDateTimeFilterInput = (input) => {
113
+ if (!input) {
136
114
  return undefined;
137
115
  }
138
- // Return the Prisma filter.
139
116
  return {
140
117
  equals: input.equals ?? undefined,
141
118
  in: input.in?.filter((o) => !!o),
@@ -144,21 +121,19 @@ const graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter = (input) =>
144
121
  lte: input.lte ?? undefined,
145
122
  gt: input.gt ?? undefined,
146
123
  gte: input.gte ?? undefined,
147
- not: graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter(input.not),
124
+ not: prismaNestedDateTimeFilterFromGraphQLNestedDateTimeFilterInput(input.not),
148
125
  };
149
126
  };
150
127
 
151
128
  /**
152
- * Maps the GraphQL date time filter input to a Prisma date time filter.
153
- * @param input The GraphQL filter input.
154
- * @returns The Prisma filter.
129
+ * Prisma Date Time Filter From GraphQL Date Time Filter Input.
130
+ * @param input The GraphQL Date Time Filter Input.
131
+ * @returns The Prisma Date Time Filter.
155
132
  */
156
- const graphQLDateTimeFilterInputToPrismaDateTimeFilter = (input) => {
157
- // If the GraphQL filter input is null or undefined, return undefined.
158
- if (input === null || input === undefined) {
133
+ const prismaDateTimeFilterFromGraphQLDateTimeFilterInput = (input) => {
134
+ if (!input) {
159
135
  return undefined;
160
136
  }
161
- // Return the Prisma filter.
162
137
  return {
163
138
  equals: input.equals ?? undefined,
164
139
  in: input.in?.filter((o) => !!o),
@@ -167,21 +142,19 @@ const graphQLDateTimeFilterInputToPrismaDateTimeFilter = (input) => {
167
142
  lte: input.lte ?? undefined,
168
143
  gt: input.gt ?? undefined,
169
144
  gte: input.gte ?? undefined,
170
- not: graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter(input.not),
145
+ not: prismaNestedDateTimeFilterFromGraphQLNestedDateTimeFilterInput(input.not),
171
146
  };
172
147
  };
173
148
 
174
149
  /**
175
- * Maps the GraphQL nested date time nullable filter input to a Prisma nested date time nullable filter.
176
- * @param input The GraphQL filter input.
177
- * @returns The Prisma filter.
150
+ * Prisma Nested Date Time Nullable Filter From GraphQL Nested Date Time Nullable Filter Input.
151
+ * @param input The GraphQL Nested Date Time Nullable Filter Input.
152
+ * @returns The Prisma Nested Date Time Nullable Filter.
178
153
  */
179
- const graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter = (input) => {
180
- // If the GraphQL filter input is null or undefined, return undefined.
181
- if (input === null || input === undefined) {
154
+ const prismaNestedDateTimeNullableFilterFromGraphQLNestedDateTimeNullableFilterInput = (input) => {
155
+ if (!input) {
182
156
  return undefined;
183
157
  }
184
- // Return the Prisma filter.
185
158
  return {
186
159
  equals: input.equals,
187
160
  in: input.in ? input.in.filter((o) => !!o) : input.in,
@@ -190,21 +163,21 @@ const graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilt
190
163
  lte: input.lte ?? undefined,
191
164
  gt: input.gt ?? undefined,
192
165
  gte: input.gte ?? undefined,
193
- not: input.not ? graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter(input.not) : input.not,
166
+ not: input.not
167
+ ? prismaNestedDateTimeNullableFilterFromGraphQLNestedDateTimeNullableFilterInput(input.not)
168
+ : input.not,
194
169
  };
195
170
  };
196
171
 
197
172
  /**
198
- * Maps the GraphQL date time nullable filter input to the Prisma date time nullable filter.
199
- * @param input The GraphQL filter input.
200
- * @returns The Prisma filter.
173
+ * Prisma Date Time Nullable Filter From GraphQL Date Time Nullable Filter Input.
174
+ * @param input The GraphQL Date Time Nullable Filter Input.
175
+ * @returns The Prisma Date Time Nullable Filter.
201
176
  */
202
- const graphQLDateTimeNullableFilterInputToPrismaDateTimeNullableFilter = (input) => {
203
- // If the GraphQL filter input is null or undefined, return undefined.
204
- if (input === null || input === undefined) {
177
+ const prismaDateTimeNullableFilterFromGraphQLDateTimeNullableFilterInput = (input) => {
178
+ if (!input) {
205
179
  return undefined;
206
180
  }
207
- // Return the Prisma filter.
208
181
  return {
209
182
  equals: input.equals,
210
183
  in: input.in ? input.in.filter((o) => !!o) : input.in,
@@ -213,21 +186,21 @@ const graphQLDateTimeNullableFilterInputToPrismaDateTimeNullableFilter = (input)
213
186
  lte: input.lte ?? undefined,
214
187
  gt: input.gt ?? undefined,
215
188
  gte: input.gte ?? undefined,
216
- not: input.not ? graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter(input.not) : input.not,
189
+ not: input.not
190
+ ? prismaNestedDateTimeNullableFilterFromGraphQLNestedDateTimeNullableFilterInput(input.not)
191
+ : input.not,
217
192
  };
218
193
  };
219
194
 
220
195
  /**
221
- * Maps the GraphQL nested float filter input to a Prisma nested float filter.
222
- * @param input The GraphQL filter input.
223
- * @returns The Prisma filter.
196
+ * Prisma Nested Float Filter From GraphQL Nested Float Filter Input.
197
+ * @param input The GraphQL Nested Float Filter Input.
198
+ * @returns The Prisma Nested Float Filter.
224
199
  */
225
- const graphQLNestedFloatFilterInputToPrismaNestedFloatFilter = (input) => {
226
- // If the GraphQL filter input is null or undefined, return undefined.
227
- if (input === null || input === undefined) {
200
+ const prismaNestedFloatFilterFromGraphQLNestedFloatFilterInput = (input) => {
201
+ if (!input) {
228
202
  return undefined;
229
203
  }
230
- // Return the Prisma filter.
231
204
  return {
232
205
  equals: input.equals ?? undefined,
233
206
  in: input.in?.filter((o) => !!o),
@@ -236,21 +209,19 @@ const graphQLNestedFloatFilterInputToPrismaNestedFloatFilter = (input) => {
236
209
  lte: input.lte ?? undefined,
237
210
  gt: input.gt ?? undefined,
238
211
  gte: input.gte ?? undefined,
239
- not: graphQLNestedFloatFilterInputToPrismaNestedFloatFilter(input.not),
212
+ not: prismaNestedFloatFilterFromGraphQLNestedFloatFilterInput(input.not),
240
213
  };
241
214
  };
242
215
 
243
216
  /**
244
- * Maps the GraphQL float filter input to a Prisma float filter.
245
- * @param input The GraphQL filter input.
246
- * @returns The Prisma filter.
217
+ * Prisma Float Filter From GraphQL Float Filter Input.
218
+ * @param input The GraphQL Float Filter Input.
219
+ * @returns The Prisma Float Filter.
247
220
  */
248
- const graphQLFloatFilterInputToPrismaFloatFilter = (input) => {
249
- // If the GraphQL filter input is null or undefined, return undefined.
250
- if (input === null || input === undefined) {
221
+ const prismaFloatFilterFromGraphQLFloatFilterInput = (input) => {
222
+ if (!input) {
251
223
  return undefined;
252
224
  }
253
- // Return the Prisma filter.
254
225
  return {
255
226
  equals: input.equals ?? undefined,
256
227
  in: input.in?.filter((o) => !!o),
@@ -259,21 +230,19 @@ const graphQLFloatFilterInputToPrismaFloatFilter = (input) => {
259
230
  lte: input.lte ?? undefined,
260
231
  gt: input.gt ?? undefined,
261
232
  gte: input.gte ?? undefined,
262
- not: graphQLNestedFloatFilterInputToPrismaNestedFloatFilter(input.not),
233
+ not: prismaNestedFloatFilterFromGraphQLNestedFloatFilterInput(input.not),
263
234
  };
264
235
  };
265
236
 
266
237
  /**
267
- * Maps the GraphQL nested float nullable filter input to a Prisma nested float nullable filter.
268
- * @param input The GraphQL filter.
269
- * @returns The Prisma filter.
238
+ * Prisma Nested Float Nullable Filter From GraphQL Nested Float Nullable Filter Input.
239
+ * @param input The GraphQL Nested Float Nullable Filter Input.
240
+ * @returns The Prisma Nested Float Nullable Filter.
270
241
  */
271
- const graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter = (input) => {
272
- // If the GraphQL filter input is null or undefined, return undefined.
273
- if (input === null || input === undefined) {
242
+ const prismaNestedFloatNullableFilterFromGraphQLNestedFloatNullableFilterInput = (input) => {
243
+ if (!input) {
274
244
  return undefined;
275
245
  }
276
- // Return the Prisma filter.
277
246
  return {
278
247
  equals: input.equals,
279
248
  in: input.in ? input.in.filter((o) => !!o) : input.in,
@@ -282,21 +251,19 @@ const graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter = (
282
251
  lte: input.lte ?? undefined,
283
252
  gt: input.gt ?? undefined,
284
253
  gte: input.gte ?? undefined,
285
- not: input.not ? graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter(input.not) : input.not,
254
+ not: input.not ? prismaNestedFloatNullableFilterFromGraphQLNestedFloatNullableFilterInput(input.not) : input.not,
286
255
  };
287
256
  };
288
257
 
289
258
  /**
290
- * Maps the GraphQL float nullable filter input to a Prisma float nullable filter.
291
- * @param input The GraphQL filter input.
292
- * @returns The Prisma filter.
259
+ * Prisma Float Nullable Filter From GraphQL Float Nullable Filter Input.
260
+ * @param input The GraphQL Float Nullable Filter Input.
261
+ * @returns The Prisma Float Nullable Filter.
293
262
  */
294
- const graphQLFloatNullableFilterInputToPrismaFloatNullableFilter = (input) => {
295
- // If the GraphQL filter input is null or undefined, return undefined.
296
- if (input === null || input === undefined) {
263
+ const prismaFloatNullableFilterFromGraphQLFloatNullableFilterInput = (input) => {
264
+ if (!input) {
297
265
  return undefined;
298
266
  }
299
- // Return the Prisma filter.
300
267
  return {
301
268
  equals: input.equals,
302
269
  in: input.in ? input.in.filter((o) => !!o) : input.in,
@@ -305,21 +272,19 @@ const graphQLFloatNullableFilterInputToPrismaFloatNullableFilter = (input) => {
305
272
  lte: input.lte ?? undefined,
306
273
  gt: input.gt ?? undefined,
307
274
  gte: input.gte ?? undefined,
308
- not: input.not ? graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter(input.not) : input.not,
275
+ not: input.not ? prismaNestedFloatNullableFilterFromGraphQLNestedFloatNullableFilterInput(input.not) : input.not,
309
276
  };
310
277
  };
311
278
 
312
279
  /**
313
- * Maps the GraphQL nested id filter input to the Prisma nested string filter.
314
- * @param input The GraphQL filter input.
315
- * @returns The Prisma filter.
280
+ * Prisma Nested String Filter From GraphQL Nested Id Filter Input.
281
+ * @param input The GraphQL Nested Id Filter Input.
282
+ * @returns The Prisma Nested String Filter.
316
283
  */
317
- const graphQLNestedIdFilterInputToPrismaNestedStringFilter = (input) => {
318
- // If the GraphQL filter input is null or undefined, return undefined.
319
- if (input === null || input === undefined) {
284
+ const prismaNestedStringFilterFromGraphQLNestedIdFilterInput = (input) => {
285
+ if (!input) {
320
286
  return undefined;
321
287
  }
322
- // Return the Prisma filter.
323
288
  return {
324
289
  contains: input.contains ?? undefined,
325
290
  endsWith: input.endsWith ?? undefined,
@@ -329,7 +294,7 @@ const graphQLNestedIdFilterInputToPrismaNestedStringFilter = (input) => {
329
294
  in: input.in?.filter((o) => !!o),
330
295
  lt: input.lt ?? undefined,
331
296
  lte: input.lte ?? undefined,
332
- not: graphQLNestedIdFilterInputToPrismaNestedStringFilter(input.not),
297
+ not: prismaNestedStringFilterFromGraphQLNestedIdFilterInput(input.not),
333
298
  notIn: input.notIn?.filter((o) => !!o),
334
299
  startsWith: input.startsWith ?? undefined,
335
300
  };
@@ -348,30 +313,26 @@ var SortOrder;
348
313
  })(SortOrder || (SortOrder = {}));
349
314
 
350
315
  /**
351
- * Maps the GraphQL query mode to a Prisma query mode.
352
- * @param queryMode The GraphQL query mode.
353
- * @returns The Prisma query mode.
316
+ * Prisma Query Mode From GraphQL Query Mode.
317
+ * @param queryMode The GraphQL Query Mode.
318
+ * @returns The Prisma Query Mode.
354
319
  */
355
- const graphQLQueryModeToPrismaQueryMode = (queryMode) => {
356
- // If the query mode is null or undefined, return undefined.
357
- if (queryMode === null || queryMode === undefined) {
320
+ const prismaQueryModeFromGraphQLQueryMode = (queryMode) => {
321
+ if (!queryMode) {
358
322
  return undefined;
359
323
  }
360
- // Return the Prisma query mode.
361
324
  return queryMode === QueryMode.Default ? 'default' : 'insensitive';
362
325
  };
363
326
 
364
327
  /**
365
- * Maps the GraphQL id filter input to the Prisma string filter.
366
- * @param input The GraphQL filter input.
367
- * @returns The Prisma filter.
328
+ * Prisma String Filter From GraphQL Id Filter Input.
329
+ * @param input The GraphQL Id Filter Input.
330
+ * @returns The Prisma String Filter.
368
331
  */
369
- const graphQLIdFilterInputToPrismaStringFilter = (input) => {
370
- // If the GraphQL filter input is null or undefined, return undefined.
371
- if (input === null || input === undefined) {
332
+ const prismaStringFilterFromGraphQLIdFilterInput = (input) => {
333
+ if (!input) {
372
334
  return undefined;
373
335
  }
374
- // Return the Prisma filter.
375
336
  return {
376
337
  contains: input.contains ?? undefined,
377
338
  endsWith: input.endsWith ?? undefined,
@@ -381,24 +342,22 @@ const graphQLIdFilterInputToPrismaStringFilter = (input) => {
381
342
  in: input.in?.filter((o) => !!o),
382
343
  lt: input.lt ?? undefined,
383
344
  lte: input.lte ?? undefined,
384
- mode: graphQLQueryModeToPrismaQueryMode(input.mode),
385
- not: graphQLNestedIdFilterInputToPrismaNestedStringFilter(input.not),
345
+ mode: prismaQueryModeFromGraphQLQueryMode(input.mode),
346
+ not: prismaNestedStringFilterFromGraphQLNestedIdFilterInput(input.not),
386
347
  notIn: input.notIn?.filter((o) => !!o),
387
348
  startsWith: input.startsWith ?? undefined,
388
349
  };
389
350
  };
390
351
 
391
352
  /**
392
- * Maps the GraphQL nested id nullable filter input to the Prisma nested string nullable filter.
393
- * @param input The GraphQL filter input.
394
- * @returns The Prisma filter.
353
+ * Prisma Nested String Nullable Filter From GraphQL Nested ID Nullable Filter Input.
354
+ * @param input The GraphQL Nested ID Nullable Filter Input.
355
+ * @returns The Prisma Nested String Nullable Filter.
395
356
  */
396
- const graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter = (input) => {
397
- // If the GraphQL filter input is null or undefined, return undefined.
398
- if (input === null || input === undefined) {
357
+ const prismaNestedStringNullableFilterFromGraphQLNestedIdNullableFilterInput = (input) => {
358
+ if (!input) {
399
359
  return undefined;
400
360
  }
401
- // Return the Prisma filter.
402
361
  return {
403
362
  contains: input.contains ?? undefined,
404
363
  endsWith: input.endsWith ?? undefined,
@@ -408,23 +367,21 @@ const graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter = (in
408
367
  in: input.in ? input.in.filter((o) => !!o) : input.in,
409
368
  lt: input.lt ?? undefined,
410
369
  lte: input.lte ?? undefined,
411
- not: input.not ? graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter(input.not) : input.not,
370
+ not: input.not ? prismaNestedStringNullableFilterFromGraphQLNestedIdNullableFilterInput(input.not) : input.not,
412
371
  notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
413
372
  startsWith: input.startsWith ?? undefined,
414
373
  };
415
374
  };
416
375
 
417
376
  /**
418
- * Maps the GraphQL id nullable filter input to the Prisma string nullable filter.
419
- * @param input The GraphQL filter input.
420
- * @returns The Prisma string.
377
+ * Prisma String Nullable Filter From GraphQL ID Nullable Filter Input.
378
+ * @param input The GraphQL ID Nullable Filter Input.
379
+ * @returns The Prisma String Nullable Filter.
421
380
  */
422
- const graphQLIdNullableFilterInputToPrismaStringNullableFilter = (input) => {
423
- // If the GraphQL filter input is null or undefined, return undefined.
424
- if (input === null || input === undefined) {
381
+ const prismaStringNullableFilterFromGraphQLIdNullableFilterInput = (input) => {
382
+ if (!input) {
425
383
  return undefined;
426
384
  }
427
- // Return the Prisma filter.
428
385
  return {
429
386
  contains: input.contains ?? undefined,
430
387
  endsWith: input.endsWith ?? undefined,
@@ -434,24 +391,22 @@ const graphQLIdNullableFilterInputToPrismaStringNullableFilter = (input) => {
434
391
  in: input.in ? input.in.filter((o) => !!o) : input.in,
435
392
  lt: input.lt ?? undefined,
436
393
  lte: input.lte ?? undefined,
437
- mode: graphQLQueryModeToPrismaQueryMode(input.mode),
438
- not: input.not ? graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter(input.not) : input.not,
394
+ mode: prismaQueryModeFromGraphQLQueryMode(input.mode),
395
+ not: input.not ? prismaNestedStringNullableFilterFromGraphQLNestedIdNullableFilterInput(input.not) : input.not,
439
396
  notIn: input.notIn ? input.notIn.filter((o) => !!o) : input.notIn,
440
397
  startsWith: input.startsWith ?? undefined,
441
398
  };
442
399
  };
443
400
 
444
401
  /**
445
- * Maps the GraphQL nested int filter input to a Prisma nested int filter.
446
- * @param input The GraphQL filter input.
447
- * @returns The Prisma filter.
402
+ * Prisma Nested Int Filter From GraphQL Nested Int Filter Input.
403
+ * @param input The GraphQL Nested Int Filter Input.
404
+ * @returns The Prisma Nested Int Filter.
448
405
  */
449
- const graphQLNestedIntFilterInputToPrismaNestedIntFilter = (input) => {
450
- // If the GraphQL filter input is null or undefined, return undefined.
451
- if (input === null || input === undefined) {
406
+ const prismaNestedIntFilterFromGraphQLNestedIntFilterInput = (input) => {
407
+ if (!input) {
452
408
  return undefined;
453
409
  }
454
- // Return the Prisma filter.
455
410
  return {
456
411
  equals: input.equals ?? undefined,
457
412
  in: input.in?.filter((o) => !!o),
@@ -460,21 +415,19 @@ const graphQLNestedIntFilterInputToPrismaNestedIntFilter = (input) => {
460
415
  lte: input.lte ?? undefined,
461
416
  gt: input.gt ?? undefined,
462
417
  gte: input.gte ?? undefined,
463
- not: graphQLNestedIntFilterInputToPrismaNestedIntFilter(input.not),
418
+ not: prismaNestedIntFilterFromGraphQLNestedIntFilterInput(input.not),
464
419
  };
465
420
  };
466
421
 
467
422
  /**
468
- * Map the GraphQL int filter input to a Prisma int filter.
469
- * @param input The GraphQL filter input.
470
- * @returns The Prisma filter.
423
+ * Prisma Int Filter From GraphQL Int Filter Input.
424
+ * @param input The GraphQL Int Filter Input.
425
+ * @returns The Prisma Int Filter.
471
426
  */
472
- const graphQLIntFilterInputToPrismaIntFilter = (input) => {
473
- // If the GraphQL filter input is null or undefined, return undefined.
474
- if (input === null || input === undefined) {
427
+ const prismaIntFilterFromGraphQLIntFilterInput = (input) => {
428
+ if (!input) {
475
429
  return undefined;
476
430
  }
477
- // Return the Prisma filter.
478
431
  return {
479
432
  equals: input.equals ?? undefined,
480
433
  in: input.in?.filter((o) => !!o),
@@ -483,21 +436,19 @@ const graphQLIntFilterInputToPrismaIntFilter = (input) => {
483
436
  lte: input.lte ?? undefined,
484
437
  gt: input.gt ?? undefined,
485
438
  gte: input.gte ?? undefined,
486
- not: graphQLNestedIntFilterInputToPrismaNestedIntFilter(input.not),
439
+ not: prismaNestedIntFilterFromGraphQLNestedIntFilterInput(input.not),
487
440
  };
488
441
  };
489
442
 
490
443
  /**
491
- * Maps the GraphQL nested int nullable filter input to a Prisma nested int nullable filter.
492
- * @param input The GraphQL filter input.
493
- * @returns The Prisma filter.
444
+ * Prisma Nested Int Nullable Filter From GraphQL Nested Int Nullable Filter Input.
445
+ * @param input The GraphQL Nested Int Nullable Filter Input.
446
+ * @returns The Prisma Nested Int Nullable Filter.
494
447
  */
495
- const graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter = (input) => {
496
- // If the GraphQL filter input is null or undefined, return undefined.
497
- if (input === null || input === undefined) {
448
+ const prismaNestedIntNullableFilterFromGraphQLNestedIntNullableFilterInput = (input) => {
449
+ if (!input) {
498
450
  return undefined;
499
451
  }
500
- // Return the Prisma filter.
501
452
  return {
502
453
  equals: input.equals,
503
454
  in: input.in ? input.in.filter((o) => !!o) : input.in,
@@ -506,21 +457,19 @@ const graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter = (inpu
506
457
  lte: input.lte ?? undefined,
507
458
  gt: input.gt ?? undefined,
508
459
  gte: input.gte ?? undefined,
509
- not: input.not ? graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter(input.not) : input.not,
460
+ not: input.not ? prismaNestedIntNullableFilterFromGraphQLNestedIntNullableFilterInput(input.not) : input.not,
510
461
  };
511
462
  };
512
463
 
513
464
  /**
514
- * Maps the GraphQL int nullable filter input to a Prisma int nullable filter.
515
- * @param input The GraphQL filter input.
516
- * @returns The Prisma filter.
465
+ * Prisma Int Nullable Filter From GraphQL Int Nullable Filter Input.
466
+ * @param input The GraphQL Int Nullable Filter Input.
467
+ * @returns The Prisma Int Nullable Filter.
517
468
  */
518
- const graphQLIntNullableFilterInputToPrismaIntNullableFilter = (input) => {
519
- // If the GraphQL filter input is null or undefined, return undefined.
520
- if (input === null || input === undefined) {
469
+ const prismaIntNullableFilterFromGraphQLIntNullableFilterInput = (input) => {
470
+ if (!input) {
521
471
  return undefined;
522
472
  }
523
- // Return the Prisma filter.
524
473
  return {
525
474
  equals: input.equals,
526
475
  in: input.in ? input.in.filter((o) => !!o) : input.in,
@@ -529,21 +478,19 @@ const graphQLIntNullableFilterInputToPrismaIntNullableFilter = (input) => {
529
478
  lte: input.lte ?? undefined,
530
479
  gt: input.gt ?? undefined,
531
480
  gte: input.gte ?? undefined,
532
- not: input.not ? graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter(input.not) : input.not,
481
+ not: input.not ? prismaNestedIntNullableFilterFromGraphQLNestedIntNullableFilterInput(input.not) : input.not,
533
482
  };
534
483
  };
535
484
 
536
485
  /**
537
- * Maps the GraphQL nested string filter input to a Prisma nested string filter.
538
- * @param input The GraphQL filter input.
539
- * @returns The Prisma filter.
486
+ * Prisma Nested String Filter From GraphQL Nested String Filter Input.
487
+ * @param input The GraphQL Nested String Filter Input.
488
+ * @returns The Prisma Nested String Filter.
540
489
  */
541
- const graphQLNestedStringFilterInputToPrismaNestedStringFilter = (input) => {
542
- // If the GraphQL filter input is null or undefined, return undefined.
543
- if (input === null || input === undefined) {
490
+ const prismaNestedStringFilterFromGraphQLNestedStringFilterInput = (input) => {
491
+ if (!input) {
544
492
  return undefined;
545
493
  }
546
- // Return the Prisma filter.
547
494
  return {
548
495
  equals: input.equals ?? undefined,
549
496
  in: input.in?.filter((o) => !!o),
@@ -555,21 +502,19 @@ const graphQLNestedStringFilterInputToPrismaNestedStringFilter = (input) => {
555
502
  contains: input.contains ?? undefined,
556
503
  startsWith: input.startsWith ?? undefined,
557
504
  endsWith: input.endsWith ?? undefined,
558
- not: graphQLNestedStringFilterInputToPrismaNestedStringFilter(input.not),
505
+ not: prismaNestedStringFilterFromGraphQLNestedStringFilterInput(input.not),
559
506
  };
560
507
  };
561
508
 
562
509
  /**
563
- * Maps the GraphQL nested string nullable filter input to a Prisma nested string nullable filter.
564
- * @param input The GraphQL filter input.
565
- * @returns The Prisma afilter.
510
+ * Prisma Nested String Nullable Filter From GraphQL Nested String Nullable Filter Input.
511
+ * @param input The GraphQL Nested String Nullable Filter Input.
512
+ * @returns The Prisma Nested String Nullable Filter.
566
513
  */
567
- const graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter = (input) => {
568
- // If the GraphQL filter input is null or undefined, return undefined.
569
- if (input === null || input === undefined) {
514
+ const prismaNestedStringNullableFilterFromGraphQLNestedStringNullableFilterInput = (input) => {
515
+ if (!input) {
570
516
  return undefined;
571
517
  }
572
- // Return the Prisma filter.
573
518
  return {
574
519
  equals: input.equals,
575
520
  in: input.in ? input.in.filter((o) => !!o) : input.in,
@@ -581,21 +526,19 @@ const graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter =
581
526
  contains: input.contains ?? undefined,
582
527
  startsWith: input.startsWith ?? undefined,
583
528
  endsWith: input.endsWith ?? undefined,
584
- not: input.not ? graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter(input.not) : input.not,
529
+ not: input.not ? prismaNestedStringNullableFilterFromGraphQLNestedStringNullableFilterInput(input.not) : input.not,
585
530
  };
586
531
  };
587
532
 
588
533
  /**
589
- * Maps the GraphQL string filter input to a Prisma string filter.
590
- * @param input The GraphQL filter input.
591
- * @returns The Prisma filter.
534
+ * Prisma String Filter From GraphQL String Filter Input.
535
+ * @param input The GraphQL String Filter Input.
536
+ * @returns The Prisma String Filter.
592
537
  */
593
- const graphQLStringFilterInputToPrismaStringFilter = (input) => {
594
- // If the GraphQL filter input is null or undefined, return undefined.
595
- if (input === null || input === undefined) {
538
+ const prismaStringFilterFromGraphQLStringFilterInput = (input) => {
539
+ if (!input) {
596
540
  return undefined;
597
541
  }
598
- // Return the Prisma filter.
599
542
  return {
600
543
  equals: input.equals ?? undefined,
601
544
  in: input.in?.filter((o) => !!o),
@@ -607,22 +550,20 @@ const graphQLStringFilterInputToPrismaStringFilter = (input) => {
607
550
  contains: input.contains ?? undefined,
608
551
  startsWith: input.startsWith ?? undefined,
609
552
  endsWith: input.endsWith ?? undefined,
610
- mode: graphQLQueryModeToPrismaQueryMode(input.mode),
611
- not: graphQLNestedStringFilterInputToPrismaNestedStringFilter(input.not),
553
+ mode: prismaQueryModeFromGraphQLQueryMode(input.mode),
554
+ not: prismaNestedStringFilterFromGraphQLNestedStringFilterInput(input.not),
612
555
  };
613
556
  };
614
557
 
615
558
  /**
616
- * Maps the GraphQL string nullable filter input to a Prisma string nullable filter.
617
- * @param input The GraphQL filter.
618
- * @returns The Prisma filter.
559
+ * Prisma String Nullable Filter From GraphQL String Nullable Filter Input.
560
+ * @param input The GraphQL String Nullable Filter Input.
561
+ * @returns The Prisma String Nullable Filter.
619
562
  */
620
- const graphQLStringNullableFilterInputToPrismaStringNullableFilter = (input) => {
621
- // If the GraphQL filter input is null or undefined, return undefined
622
- if (input === null || input === undefined) {
563
+ const prismaStringNullableFilterFromGraphQLStringNullableFilterInput = (input) => {
564
+ if (!input) {
623
565
  return undefined;
624
566
  }
625
- // Return the Prisma filter
626
567
  return {
627
568
  equals: input.equals,
628
569
  in: input.in ? input.in.filter((o) => !!o) : input.in,
@@ -634,76 +575,71 @@ const graphQLStringNullableFilterInputToPrismaStringNullableFilter = (input) =>
634
575
  contains: input.contains ?? undefined,
635
576
  startsWith: input.startsWith ?? undefined,
636
577
  endsWith: input.endsWith ?? undefined,
637
- mode: graphQLQueryModeToPrismaQueryMode(input.mode),
638
- not: input.not ? graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter(input.not) : input.not,
578
+ mode: prismaQueryModeFromGraphQLQueryMode(input.mode),
579
+ not: input.not ? prismaNestedStringNullableFilterFromGraphQLNestedStringNullableFilterInput(input.not) : input.not,
639
580
  };
640
581
  };
641
582
 
642
583
  /**
643
- * Maps the GraphQL sort order to a Prisma sort order.
644
- * @param sortOrder The GraphQL sort order.
645
- * @returns The Prisma sort order.
584
+ * Prisma Sort Order From GraphQL Sort Order.
585
+ * @param sortOrder The GraphQL Sort Order.
586
+ * @returns The Prisma Sort Order.
646
587
  */
647
- const graphQLSortOrderToPrismaSortOrder = (sortOrder) => {
648
- // If the GraphQL sort order is null or undefined, return undefined.
649
- if (sortOrder === null || sortOrder === undefined) {
588
+ const prismaSortOrderFromGraphQLSortOrder = (sortOrder) => {
589
+ if (!sortOrder) {
650
590
  return undefined;
651
591
  }
652
- // Return the Prisma sort order.
653
592
  return sortOrder === SortOrder.Ascending ? 'asc' : 'desc';
654
593
  };
655
594
 
656
595
  /**
657
- * Maps the GraphQL order input to a Prisma order input.
658
- * @param input The GraphQL order input.
659
- * @returns The Prisma order input.
596
+ * Prisma Order Input From GraphQL Order Input.
597
+ * @param input The GraphQL Order Input.
598
+ * @returns The Prisma Order Input.
660
599
  */
661
- const graphQLOrderInputToPrismaOrderInput = (input) => {
662
- // Return the Prisma order by.
600
+ const prismaOrderInputFromGraphQLOrderInput = (input) => {
663
601
  return Object.fromEntries(Object.entries(input).map(([key, value]) => {
664
- return [key, graphQLSortOrderToPrismaSortOrder(value)];
602
+ return [key, prismaSortOrderFromGraphQLSortOrder(value)];
665
603
  }));
666
604
  };
667
605
 
668
606
  /**
669
- * Maps the GraphQL order inputs to the Prisma order inputs.
670
- * @param inputs The GraphQL order inputs.
671
- * @returns The Prisma order inputs.
607
+ * Prisma Order Inputs From GraphQL Order Inputs.
608
+ * @param inputs The GraphQL Prder Inputs.
609
+ * @returns The Prisma Order Inputs.
672
610
  */
673
- const graphQLOrderInputsToPrismaOrderInputs = (inputs) => {
674
- // If the GraphQL order inputs is null or undefined, return undefined.
675
- if (inputs === null || inputs === undefined) {
611
+ const prismaOrderInputsFromGraphQLOrderInputs = (inputs) => {
612
+ if (!inputs) {
676
613
  return undefined;
677
614
  }
678
- // Return the Prisma order inputs.
679
- return inputs.map(graphQLOrderInputToPrismaOrderInput);
615
+ return inputs.map(prismaOrderInputFromGraphQLOrderInput);
680
616
  };
681
617
 
682
- exports.graphQLBooleanFilterInputToPrismaBooleanFilter = graphQLBooleanFilterInputToPrismaBooleanFilter;
683
- exports.graphQLBooleanNullableFilterInputToPrismaBooleanNullableFilter = graphQLBooleanNullableFilterInputToPrismaBooleanNullableFilter;
684
- exports.graphQLCursorToPrismaWhereInput = graphQLCursorToPrismaWhereInput;
685
- exports.graphQLDateTimeFilterInputToPrismaDateTimeFilter = graphQLDateTimeFilterInputToPrismaDateTimeFilter;
686
- exports.graphQLDateTimeNullableFilterInputToPrismaDateTimeNullableFilter = graphQLDateTimeNullableFilterInputToPrismaDateTimeNullableFilter;
687
- exports.graphQLFloatFilterInputToPrismaFloatFilter = graphQLFloatFilterInputToPrismaFloatFilter;
688
- exports.graphQLFloatNullableFilterInputToPrismaFloatNullableFilter = graphQLFloatNullableFilterInputToPrismaFloatNullableFilter;
689
- exports.graphQLIdFilterInputToPrismaStringFilter = graphQLIdFilterInputToPrismaStringFilter;
690
- exports.graphQLIdNullableFilterInputToPrismaStringNullableFilter = graphQLIdNullableFilterInputToPrismaStringNullableFilter;
691
- exports.graphQLIntFilterInputToPrismaIntFilter = graphQLIntFilterInputToPrismaIntFilter;
692
- exports.graphQLIntNullableFilterInputToPrismaIntNullableFilter = graphQLIntNullableFilterInputToPrismaIntNullableFilter;
693
- exports.graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter = graphQLNestedDateTimeFilterInputToPrismaNestedDateTimeFilter;
694
- exports.graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter = graphQLNestedDateTimeNullableFilterInputToPrismaNestedDateTimeNullableFilter;
695
- exports.graphQLNestedFloatFilterInputToPrismaNestedFloatFilter = graphQLNestedFloatFilterInputToPrismaNestedFloatFilter;
696
- exports.graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter = graphQLNestedFloatNullableFilterInputToPrismaNestedFloatNullableFilter;
697
- exports.graphQLNestedIdFilterInputToPrismaNestedStringFilter = graphQLNestedIdFilterInputToPrismaNestedStringFilter;
698
- exports.graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter = graphQLNestedIdNullableFilterInputToPrismaNestedStringNullableFilter;
699
- exports.graphQLNestedIntFilterInputToPrismaNestedIntFilter = graphQLNestedIntFilterInputToPrismaNestedIntFilter;
700
- exports.graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter = graphQLNestedIntNullableFilterInputToPrismaNestedIntNullableFilter;
701
- exports.graphQLNestedStringFilterInputToPrismaNestedStringFilter = graphQLNestedStringFilterInputToPrismaNestedStringFilter;
702
- exports.graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter = graphQLNestedStringNullableFilterInputToPrismaNestedStringNullableFilter;
703
- exports.graphQLOrderInputToPrismaOrderInput = graphQLOrderInputToPrismaOrderInput;
704
- exports.graphQLOrderInputsToPrismaOrderInputs = graphQLOrderInputsToPrismaOrderInputs;
705
- exports.graphQLQueryModeToPrismaQueryMode = graphQLQueryModeToPrismaQueryMode;
706
- exports.graphQLSortOrderToPrismaSortOrder = graphQLSortOrderToPrismaSortOrder;
707
- exports.graphQLStringFilterInputToPrismaStringFilter = graphQLStringFilterInputToPrismaStringFilter;
708
- exports.graphQLStringNullableFilterInputToPrismaStringNullableFilter = graphQLStringNullableFilterInputToPrismaStringNullableFilter;
618
+ exports.prismaBooleanFilterFromGraphQLBooleanFilterInput = prismaBooleanFilterFromGraphQLBooleanFilterInput;
619
+ exports.prismaBooleanNullableFilterFromGraphQLBooleanNullableFilterInput = prismaBooleanNullableFilterFromGraphQLBooleanNullableFilterInput;
620
+ exports.prismaDateTimeFilterFromGraphQLDateTimeFilterInput = prismaDateTimeFilterFromGraphQLDateTimeFilterInput;
621
+ exports.prismaDateTimeNullableFilterFromGraphQLDateTimeNullableFilterInput = prismaDateTimeNullableFilterFromGraphQLDateTimeNullableFilterInput;
622
+ exports.prismaFloatFilterFromGraphQLFloatFilterInput = prismaFloatFilterFromGraphQLFloatFilterInput;
623
+ exports.prismaFloatNullableFilterFromGraphQLFloatNullableFilterInput = prismaFloatNullableFilterFromGraphQLFloatNullableFilterInput;
624
+ exports.prismaIntFilterFromGraphQLIntFilterInput = prismaIntFilterFromGraphQLIntFilterInput;
625
+ exports.prismaIntNullableFilterFromGraphQLIntNullableFilterInput = prismaIntNullableFilterFromGraphQLIntNullableFilterInput;
626
+ exports.prismaNestedDateTimeFilterFromGraphQLNestedDateTimeFilterInput = prismaNestedDateTimeFilterFromGraphQLNestedDateTimeFilterInput;
627
+ exports.prismaNestedDateTimeNullableFilterFromGraphQLNestedDateTimeNullableFilterInput = prismaNestedDateTimeNullableFilterFromGraphQLNestedDateTimeNullableFilterInput;
628
+ exports.prismaNestedFloatFilterFromGraphQLNestedFloatFilterInput = prismaNestedFloatFilterFromGraphQLNestedFloatFilterInput;
629
+ exports.prismaNestedFloatNullableFilterFromGraphQLNestedFloatNullableFilterInput = prismaNestedFloatNullableFilterFromGraphQLNestedFloatNullableFilterInput;
630
+ exports.prismaNestedIntFilterFromGraphQLNestedIntFilterInput = prismaNestedIntFilterFromGraphQLNestedIntFilterInput;
631
+ exports.prismaNestedIntNullableFilterFromGraphQLNestedIntNullableFilterInput = prismaNestedIntNullableFilterFromGraphQLNestedIntNullableFilterInput;
632
+ exports.prismaNestedStringFilterFromGraphQLNestedIdFilterInput = prismaNestedStringFilterFromGraphQLNestedIdFilterInput;
633
+ exports.prismaNestedStringFilterFromGraphQLNestedStringFilterInput = prismaNestedStringFilterFromGraphQLNestedStringFilterInput;
634
+ exports.prismaNestedStringNullableFilterFromGraphQLNestedIdNullableFilterInput = prismaNestedStringNullableFilterFromGraphQLNestedIdNullableFilterInput;
635
+ exports.prismaNestedStringNullableFilterFromGraphQLNestedStringNullableFilterInput = prismaNestedStringNullableFilterFromGraphQLNestedStringNullableFilterInput;
636
+ exports.prismaOrderInputFromGraphQLOrderInput = prismaOrderInputFromGraphQLOrderInput;
637
+ exports.prismaOrderInputsFromGraphQLOrderInputs = prismaOrderInputsFromGraphQLOrderInputs;
638
+ exports.prismaQueryModeFromGraphQLQueryMode = prismaQueryModeFromGraphQLQueryMode;
639
+ exports.prismaSortOrderFromGraphQLSortOrder = prismaSortOrderFromGraphQLSortOrder;
640
+ exports.prismaStringFilterFromGraphQLIdFilterInput = prismaStringFilterFromGraphQLIdFilterInput;
641
+ exports.prismaStringFilterFromGraphQLStringFilterInput = prismaStringFilterFromGraphQLStringFilterInput;
642
+ exports.prismaStringNullableFilterFromGraphQLIdNullableFilterInput = prismaStringNullableFilterFromGraphQLIdNullableFilterInput;
643
+ exports.prismaStringNullableFilterFromGraphQLStringNullableFilterInput = prismaStringNullableFilterFromGraphQLStringNullableFilterInput;
644
+ exports.prismaWhereInputFromGraphQLCursor = prismaWhereInputFromGraphQLCursor;
709
645
  //# sourceMappingURL=index.js.map