@k0lyan/nestjs-prisma-graphql-generator 0.5.3 → 0.5.4
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/generator/generate-grouped-fast.js +35 -35
- package/dist/generator/helpers-generator.js +35 -38
- package/dist/generator/helpers-generator.js.map +1 -1
- package/dist/runtime/helpers.d.ts +3 -2
- package/dist/runtime/helpers.d.ts.map +1 -1
- package/dist/runtime/helpers.js +34 -38
- package/dist/runtime/helpers.js.map +1 -1
- package/package.json +1 -1
|
@@ -1194,65 +1194,65 @@ function buildPrismaSelect(fields: Record<string, ResolveTree>): PrismaSelect {
|
|
|
1194
1194
|
/**
|
|
1195
1195
|
* Aggregate field names that Prisma expects
|
|
1196
1196
|
*/
|
|
1197
|
-
const AGGREGATE_FIELDS = ['_count', '_avg', '_sum', '_min', '_max']
|
|
1197
|
+
const AGGREGATE_FIELDS = new Set(['_count', '_avg', '_sum', '_min', '_max']);
|
|
1198
1198
|
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Transform GraphQL resolve info into Prisma aggregate arguments
|
|
1201
1201
|
*
|
|
1202
|
-
*
|
|
1203
|
-
*
|
|
1202
|
+
* This function manually parses the GraphQL field nodes to extract aggregate
|
|
1203
|
+
* field selections. Unlike transformInfoIntoPrismaArgs, this returns aggregate
|
|
1204
|
+
* fields directly at the top level (e.g., { _count: true, _avg: { field: true } })
|
|
1204
1205
|
* rather than wrapped in a select object.
|
|
1205
1206
|
*/
|
|
1206
1207
|
export function transformInfoIntoPrismaAggregateArgs(info: GraphQLResolveInfo): PrismaAggregateArgs {
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1209
|
-
|
|
1208
|
+
const result: PrismaAggregateArgs = {};
|
|
1209
|
+
|
|
1210
|
+
// Get the first field node (the aggregate query field)
|
|
1211
|
+
const fieldNode = info.fieldNodes[0];
|
|
1212
|
+
if (!fieldNode?.selectionSet) {
|
|
1210
1213
|
return {};
|
|
1211
1214
|
}
|
|
1212
1215
|
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
);
|
|
1216
|
+
// Iterate through the selections (e.g., _count, _avg, _sum, etc.)
|
|
1217
|
+
for (const selection of fieldNode.selectionSet.selections) {
|
|
1218
|
+
if (selection.kind !== 'Field') continue;
|
|
1217
1219
|
|
|
1218
|
-
|
|
1219
|
-
}
|
|
1220
|
+
const fieldName = selection.name.value;
|
|
1220
1221
|
|
|
1221
|
-
|
|
1222
|
-
|
|
1222
|
+
// Only process aggregate fields
|
|
1223
|
+
if (!AGGREGATE_FIELDS.has(fieldName)) continue;
|
|
1223
1224
|
|
|
1224
|
-
|
|
1225
|
-
if (!
|
|
1226
|
-
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
const nestedFields = fieldInfo.fieldsByTypeName;
|
|
1230
|
-
const nestedTypes = Object.keys(nestedFields);
|
|
1231
|
-
|
|
1232
|
-
if (nestedTypes.length === 0) {
|
|
1225
|
+
// Check if the field has nested selections
|
|
1226
|
+
if (!selection.selectionSet) {
|
|
1227
|
+
// No nested selections - for _count, this means count all
|
|
1233
1228
|
if (fieldName === '_count') {
|
|
1234
1229
|
result._count = true;
|
|
1235
1230
|
}
|
|
1236
1231
|
continue;
|
|
1237
1232
|
}
|
|
1238
1233
|
|
|
1234
|
+
// Parse nested field selections
|
|
1239
1235
|
const fieldSelect: Record<string, boolean> = {};
|
|
1240
|
-
for (const
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1236
|
+
for (const nestedSelection of selection.selectionSet.selections) {
|
|
1237
|
+
if (nestedSelection.kind !== 'Field') continue;
|
|
1238
|
+
|
|
1239
|
+
const nestedFieldName = nestedSelection.name.value;
|
|
1240
|
+
|
|
1241
|
+
// Skip __typename
|
|
1242
|
+
if (nestedFieldName === '__typename') continue;
|
|
1243
|
+
|
|
1244
|
+
// Special _all field for _count means count all records
|
|
1245
|
+
if (nestedFieldName === '_all') {
|
|
1246
|
+
if (fieldName === '_count') {
|
|
1247
|
+
result._count = true;
|
|
1248
|
+
break;
|
|
1252
1249
|
}
|
|
1250
|
+
} else {
|
|
1251
|
+
fieldSelect[nestedFieldName] = true;
|
|
1253
1252
|
}
|
|
1254
1253
|
}
|
|
1255
1254
|
|
|
1255
|
+
// Add to result if we have field selections
|
|
1256
1256
|
if (Object.keys(fieldSelect).length > 0) {
|
|
1257
1257
|
(result as any)[fieldName] = fieldSelect;
|
|
1258
1258
|
} else if (fieldName === '_count' && result._count !== true) {
|
|
@@ -141,68 +141,65 @@ function buildPrismaSelect(fields: Record<string, ResolveTree>): PrismaSelect {
|
|
|
141
141
|
/**
|
|
142
142
|
* Aggregate field names that Prisma expects
|
|
143
143
|
*/
|
|
144
|
-
const AGGREGATE_FIELDS = ['_count', '_avg', '_sum', '_min', '_max']
|
|
144
|
+
const AGGREGATE_FIELDS = new Set(['_count', '_avg', '_sum', '_min', '_max']);
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Transform GraphQL resolve info into Prisma aggregate arguments
|
|
148
148
|
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
149
|
+
* This function manually parses the GraphQL field nodes to extract aggregate
|
|
150
|
+
* field selections. Unlike transformInfoIntoPrismaArgs, this returns aggregate
|
|
151
|
+
* fields directly at the top level (e.g., { _count: true, _avg: { field: true } })
|
|
151
152
|
* rather than wrapped in a select object.
|
|
152
153
|
*/
|
|
153
154
|
export function transformInfoIntoPrismaAggregateArgs(info: GraphQLResolveInfo): PrismaAggregateArgs {
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
const result: PrismaAggregateArgs = {};
|
|
156
|
+
|
|
157
|
+
// Get the first field node (the aggregate query field)
|
|
158
|
+
const fieldNode = info.fieldNodes[0];
|
|
159
|
+
if (!fieldNode?.selectionSet) {
|
|
157
160
|
return {};
|
|
158
161
|
}
|
|
159
162
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
);
|
|
164
|
-
|
|
165
|
-
return buildPrismaAggregateArgs(simplifiedInfo.fields);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Build Prisma aggregate arguments from parsed GraphQL fields
|
|
170
|
-
*/
|
|
171
|
-
function buildPrismaAggregateArgs(fields: Record<string, ResolveTree>): PrismaAggregateArgs {
|
|
172
|
-
const result: PrismaAggregateArgs = {};
|
|
163
|
+
// Iterate through the selections (e.g., _count, _avg, _sum, etc.)
|
|
164
|
+
for (const selection of fieldNode.selectionSet.selections) {
|
|
165
|
+
if (selection.kind !== 'Field') continue;
|
|
173
166
|
|
|
174
|
-
|
|
175
|
-
if (!['_count', '_avg', '_sum', '_min', '_max'].includes(fieldName)) {
|
|
176
|
-
continue;
|
|
177
|
-
}
|
|
167
|
+
const fieldName = selection.name.value;
|
|
178
168
|
|
|
179
|
-
|
|
180
|
-
|
|
169
|
+
// Only process aggregate fields
|
|
170
|
+
if (!AGGREGATE_FIELDS.has(fieldName)) continue;
|
|
181
171
|
|
|
182
|
-
if
|
|
172
|
+
// Check if the field has nested selections
|
|
173
|
+
if (!selection.selectionSet) {
|
|
174
|
+
// No nested selections - for _count, this means count all
|
|
183
175
|
if (fieldName === '_count') {
|
|
184
176
|
result._count = true;
|
|
185
177
|
}
|
|
186
178
|
continue;
|
|
187
179
|
}
|
|
188
180
|
|
|
181
|
+
// Parse nested field selections
|
|
189
182
|
const fieldSelect: Record<string, boolean> = {};
|
|
190
|
-
for (const
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
183
|
+
for (const nestedSelection of selection.selectionSet.selections) {
|
|
184
|
+
if (nestedSelection.kind !== 'Field') continue;
|
|
185
|
+
|
|
186
|
+
const nestedFieldName = nestedSelection.name.value;
|
|
187
|
+
|
|
188
|
+
// Skip __typename
|
|
189
|
+
if (nestedFieldName === '__typename') continue;
|
|
190
|
+
|
|
191
|
+
// Special _all field for _count means count all records
|
|
192
|
+
if (nestedFieldName === '_all') {
|
|
193
|
+
if (fieldName === '_count') {
|
|
194
|
+
result._count = true;
|
|
195
|
+
break;
|
|
202
196
|
}
|
|
197
|
+
} else {
|
|
198
|
+
fieldSelect[nestedFieldName] = true;
|
|
203
199
|
}
|
|
204
200
|
}
|
|
205
201
|
|
|
202
|
+
// Add to result if we have field selections
|
|
206
203
|
if (Object.keys(fieldSelect).length > 0) {
|
|
207
204
|
(result as any)[fieldName] = fieldSelect;
|
|
208
205
|
} else if (fieldName === '_count' && result._count !== true) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-generator.js","sourceRoot":"","sources":["../../src/generator/helpers-generator.ts"],"names":[],"mappings":";;AAOA,0CAaC;AAhBD;;GAEG;AACH,SAAgB,eAAe,CAC7B,OAAgB,EAChB,MAAuB;IAEvB,MAAM,KAAK,GAAG,IAAI,GAAG,EAAsB,CAAC;IAE5C,6BAA6B;IAC7B,MAAM,WAAW,GAAG,YAAY,CAAC;IACjC,MAAM,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACnF,mBAAmB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACzC,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAEpC,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,mBAAmB,CAAC,UAAsB,EAAE,OAAwB;IAC3E,UAAU,CAAC,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"helpers-generator.js","sourceRoot":"","sources":["../../src/generator/helpers-generator.ts"],"names":[],"mappings":";;AAOA,0CAaC;AAhBD;;GAEG;AACH,SAAgB,eAAe,CAC7B,OAAgB,EAChB,MAAuB;IAEvB,MAAM,KAAK,GAAG,IAAI,GAAG,EAAsB,CAAC;IAE5C,6BAA6B;IAC7B,MAAM,WAAW,GAAG,YAAY,CAAC;IACjC,MAAM,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC,WAAW,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACnF,mBAAmB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACzC,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAEpC,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,mBAAmB,CAAC,UAAsB,EAAE,OAAwB;IAC3E,UAAU,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwO1B,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -64,8 +64,9 @@ export declare function transformInfoIntoPrismaArgs(info: GraphQLResolveInfo): P
|
|
|
64
64
|
/**
|
|
65
65
|
* Transform GraphQL resolve info into Prisma aggregate arguments
|
|
66
66
|
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
67
|
+
* This function manually parses the GraphQL field nodes to extract aggregate
|
|
68
|
+
* field selections. Unlike transformInfoIntoPrismaArgs, this returns aggregate
|
|
69
|
+
* fields directly at the top level (e.g., { _count: true, _avg: { field: true } })
|
|
69
70
|
* rather than wrapped in a select object.
|
|
70
71
|
*
|
|
71
72
|
* @param info - GraphQL resolve info from the resolver
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/runtime/helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY,CAAC,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY,CAAC,CAAC;CAClD;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,cAAc,CAAC,YAAY,GAAG,OAAO;IACpD,MAAM,EAAE,YAAY,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAQD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,kBAAkB,GAAG,YAAY,CAalF;AAwDD
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/runtime/helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,YAAY;I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|
|
90
90
|
* Aggregate field names that Prisma expects
|
|
91
91
|
*/
|
|
92
|
-
const AGGREGATE_FIELDS = ['_count', '_avg', '_sum', '_min', '_max'];
|
|
92
|
+
const AGGREGATE_FIELDS = new Set(['_count', '_avg', '_sum', '_min', '_max']);
|
|
93
93
|
/**
|
|
94
94
|
* Transform GraphQL resolve info into Prisma aggregate arguments
|
|
95
95
|
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
96
|
+
* This function manually parses the GraphQL field nodes to extract aggregate
|
|
97
|
+
* field selections. Unlike transformInfoIntoPrismaArgs, this returns aggregate
|
|
98
|
+
* fields directly at the top level (e.g., { _count: true, _avg: { field: true } })
|
|
98
99
|
* rather than wrapped in a select object.
|
|
99
100
|
*
|
|
100
101
|
* @param info - GraphQL resolve info from the resolver
|
|
@@ -110,54 +111,49 @@ const AGGREGATE_FIELDS = ['_count', '_avg', '_sum', '_min', '_max'];
|
|
|
110
111
|
* ```
|
|
111
112
|
*/
|
|
112
113
|
function transformInfoIntoPrismaAggregateArgs(info) {
|
|
113
|
-
const
|
|
114
|
-
|
|
114
|
+
const result = {};
|
|
115
|
+
// Get the first field node (the aggregate query field)
|
|
116
|
+
const fieldNode = info.fieldNodes[0];
|
|
117
|
+
if (!fieldNode?.selectionSet) {
|
|
115
118
|
return {};
|
|
116
119
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
*
|
|
123
|
-
* @param fields - Parsed fields from graphql-parse-resolve-info
|
|
124
|
-
* @returns Prisma aggregate arguments
|
|
125
|
-
*/
|
|
126
|
-
function buildPrismaAggregateArgs(fields) {
|
|
127
|
-
const result = {};
|
|
128
|
-
for (const [fieldName, fieldInfo] of Object.entries(fields)) {
|
|
120
|
+
// Iterate through the selections (e.g., _count, _avg, _sum, etc.)
|
|
121
|
+
for (const selection of fieldNode.selectionSet.selections) {
|
|
122
|
+
if (selection.kind !== 'Field')
|
|
123
|
+
continue;
|
|
124
|
+
const fieldName = selection.name.value;
|
|
129
125
|
// Only process aggregate fields
|
|
130
|
-
if (!AGGREGATE_FIELDS.
|
|
126
|
+
if (!AGGREGATE_FIELDS.has(fieldName))
|
|
131
127
|
continue;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (nestedTypes.length === 0) {
|
|
136
|
-
// No nested fields specified - select all
|
|
128
|
+
// Check if the field has nested selections
|
|
129
|
+
if (!selection.selectionSet) {
|
|
130
|
+
// No nested selections - for _count, this means count all
|
|
137
131
|
if (fieldName === '_count') {
|
|
138
132
|
result._count = true;
|
|
139
133
|
}
|
|
140
134
|
continue;
|
|
141
135
|
}
|
|
142
|
-
//
|
|
136
|
+
// Parse nested field selections
|
|
143
137
|
const fieldSelect = {};
|
|
144
|
-
for (const
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
fieldSelect[nestedFieldName] = true;
|
|
157
|
-
}
|
|
138
|
+
for (const nestedSelection of selection.selectionSet.selections) {
|
|
139
|
+
if (nestedSelection.kind !== 'Field')
|
|
140
|
+
continue;
|
|
141
|
+
const nestedFieldName = nestedSelection.name.value;
|
|
142
|
+
// Skip __typename
|
|
143
|
+
if (nestedFieldName === '__typename')
|
|
144
|
+
continue;
|
|
145
|
+
// Special _all field for _count means count all records
|
|
146
|
+
if (nestedFieldName === '_all') {
|
|
147
|
+
if (fieldName === '_count') {
|
|
148
|
+
result._count = true;
|
|
149
|
+
break;
|
|
158
150
|
}
|
|
159
151
|
}
|
|
152
|
+
else {
|
|
153
|
+
fieldSelect[nestedFieldName] = true;
|
|
154
|
+
}
|
|
160
155
|
}
|
|
156
|
+
// Add to result if we have field selections
|
|
161
157
|
if (Object.keys(fieldSelect).length > 0) {
|
|
162
158
|
result[fieldName] = fieldSelect;
|
|
163
159
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/runtime/helpers.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AA0EH,kEAaC;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/runtime/helpers.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AA0EH,kEAaC;AA4ED,oFA2DC;AAkBD,oDAWC;AAQD,gDAOC;AAxQD,2EAIoC;AA0CpC;;;GAGG;AACH,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,2BAA2B,CAAC,IAAwB;IAClE,MAAM,UAAU,GAAG,IAAA,6CAAgB,EAAC,IAAI,CAAC,CAAC;IAE1C,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,cAAc,GAAG,IAAA,sEAAyC,EAC9D,UAAyB,EACzB,IAAI,CAAC,UAAU,CAChB,CAAC;IAEF,OAAO,iBAAiB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED;;;;;GAKG;AACH,SAAS,iBAAiB,CAAC,MAAmC;IAC5D,MAAM,MAAM,GAA2C,EAAE,CAAC;IAE1D,KAAK,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC5D,uBAAuB;QACvB,IAAI,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC;YACnC,SAAS;QACX,CAAC;QAED,kDAAkD;QAClD,MAAM,YAAY,GAAG,SAAS,CAAC,gBAAgB,CAAC;QAChD,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE9C,IA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K,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YAC5D,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,oBAAoB,CAClC,OAAqC;IAErC,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IACpC,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CACb,mDAAmD;YACjD,sDAAsD,CACzD,CAAC;IACJ,CAAC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,GAAG,OAAuB;IAC3D,MAAM,MAAM,GAAiB,EAAE,CAAC;IAChC,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACxB,IAAI,CAAC,CAAC,MAAM;YAAE,MAAM,CAAC,MAAM,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;QACxE,IAAI,CAAC,CAAC,OAAO;YAAE,MAAM,CAAC,OAAO,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;IAC9E,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k0lyan/nestjs-prisma-graphql-generator",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Prisma generator for NestJS 11 GraphQL with optimized query building from GraphQL selections",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|