@lenne.tech/ng-base 14.8.0 → 14.8.1
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/esm2020/shared/services/graphql.service.mjs +5 -10
- package/fesm2015/lenne.tech-ng-base-shared.mjs +4 -9
- package/fesm2015/lenne.tech-ng-base-shared.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-shared.mjs +4 -9
- package/fesm2020/lenne.tech-ng-base-shared.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1213,14 +1213,6 @@ class GraphQLService {
|
|
|
1213
1213
|
const fieldsData = this.prepareFields(config.fields, {
|
|
1214
1214
|
allowed: allowedFields,
|
|
1215
1215
|
});
|
|
1216
|
-
// Log fields data
|
|
1217
|
-
if (config.log) {
|
|
1218
|
-
fieldsData.usedFields.sort();
|
|
1219
|
-
fieldsData.schemaFields.sort();
|
|
1220
|
-
const filtered = fieldsData.schemaFields.filter((field) => !fieldsData.usedFields.includes(field));
|
|
1221
|
-
const unused = this.graphQLTypeToStringArray(allowedFields).filter((field) => !fieldsData.usedFields.includes(field));
|
|
1222
|
-
console.log({ fieldsData, filtered, unused });
|
|
1223
|
-
}
|
|
1224
1216
|
fields = fieldsData.fieldsString;
|
|
1225
1217
|
}
|
|
1226
1218
|
if (fields && !fields.startsWith('{')) {
|
|
@@ -1249,7 +1241,10 @@ class GraphQLService {
|
|
|
1249
1241
|
.filter((field) => !argsData.usedArgs.includes(field));
|
|
1250
1242
|
console.log({ argsData, filtered, unused });
|
|
1251
1243
|
}
|
|
1252
|
-
|
|
1244
|
+
let args = argsData?.argsString || '';
|
|
1245
|
+
if (args === '{}') {
|
|
1246
|
+
args = '';
|
|
1247
|
+
}
|
|
1253
1248
|
// Log
|
|
1254
1249
|
if (config.log) {
|
|
1255
1250
|
console.log({ graphQL: graphql, args, fields, type: config.type });
|