@graphql-mesh/fusion-composition 0.7.2 → 0.7.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/cjs/compose.js +3 -0
- package/esm/compose.js +3 -0
- package/package.json +1 -1
package/cjs/compose.js
CHANGED
|
@@ -478,6 +478,9 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
|
|
|
478
478
|
return;
|
|
479
479
|
}
|
|
480
480
|
const type = (0, graphql_1.getNamedType)(queryFieldConfig.type);
|
|
481
|
+
if (type.astNode?.directives?.some((directive) => directive.name.value === 'key')) {
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
481
484
|
if ((0, graphql_1.isObjectType)(type)) {
|
|
482
485
|
const fieldMap = type.getFields();
|
|
483
486
|
let fieldNames = Object.keys(fieldMap);
|
package/esm/compose.js
CHANGED
|
@@ -471,6 +471,9 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
|
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
473
473
|
const type = getNamedType(queryFieldConfig.type);
|
|
474
|
+
if (type.astNode?.directives?.some((directive) => directive.name.value === 'key')) {
|
|
475
|
+
return;
|
|
476
|
+
}
|
|
474
477
|
if (isObjectType(type)) {
|
|
475
478
|
const fieldMap = type.getFields();
|
|
476
479
|
let fieldNames = Object.keys(fieldMap);
|