@graphql-mesh/fusion-composition 0.8.25 → 0.8.26-alpha-20260116204843-a9d6cb0e357f89cd20f36d306bca1653b4d018f3

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 CHANGED
@@ -503,6 +503,7 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
503
503
  const objectField = fieldMap[fieldName];
504
504
  const objectFieldType = (0, graphql_1.getNamedType)(objectField.type);
505
505
  const argEntries = Object.entries(queryFieldConfig.args);
506
+ const pluralFieldName = (0, pluralize_1.default)(fieldName);
506
507
  let argName;
507
508
  let arg;
508
509
  if (argEntries.length === 1) {
@@ -549,8 +550,9 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
549
550
  case (0, snake_case_1.snakeCase)(pluralTypeName):
550
551
  case (0, snake_case_1.snakeCase)(`get_${pluralTypeName}_by_${fieldName}`):
551
552
  case (0, snake_case_1.snakeCase)(`${pluralTypeName}_by_${fieldName}`):
552
- case (0, snake_case_1.snakeCase)(`get_${pluralTypeName}_by_${fieldName}s`):
553
- case (0, snake_case_1.snakeCase)(`${pluralTypeName}_by_${fieldName}s`): {
553
+ case (0, snake_case_1.snakeCase)(`get_${pluralTypeName}_by_${pluralFieldName}`):
554
+ case (0, snake_case_1.snakeCase)(`${pluralTypeName}_by_${pluralFieldName}`):
555
+ case (0, snake_case_1.snakeCase)(`${pluralTypeName}_by_${pluralFieldName}_list`): {
554
556
  directiveExtensions.merge ||= [];
555
557
  directiveExtensions.merge.push({
556
558
  subgraph: subgraphName,
package/esm/compose.js CHANGED
@@ -496,6 +496,7 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
496
496
  const objectField = fieldMap[fieldName];
497
497
  const objectFieldType = getNamedType(objectField.type);
498
498
  const argEntries = Object.entries(queryFieldConfig.args);
499
+ const pluralFieldName = pluralize(fieldName);
499
500
  let argName;
500
501
  let arg;
501
502
  if (argEntries.length === 1) {
@@ -542,8 +543,9 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
542
543
  case snakeCase(pluralTypeName):
543
544
  case snakeCase(`get_${pluralTypeName}_by_${fieldName}`):
544
545
  case snakeCase(`${pluralTypeName}_by_${fieldName}`):
545
- case snakeCase(`get_${pluralTypeName}_by_${fieldName}s`):
546
- case snakeCase(`${pluralTypeName}_by_${fieldName}s`): {
546
+ case snakeCase(`get_${pluralTypeName}_by_${pluralFieldName}`):
547
+ case snakeCase(`${pluralTypeName}_by_${pluralFieldName}`):
548
+ case snakeCase(`${pluralTypeName}_by_${pluralFieldName}_list`): {
547
549
  directiveExtensions.merge ||= [];
548
550
  directiveExtensions.merge.push({
549
551
  subgraph: subgraphName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/fusion-composition",
3
- "version": "0.8.25",
3
+ "version": "0.8.26-alpha-20260116204843-a9d6cb0e357f89cd20f36d306bca1653b4d018f3",
4
4
  "description": "Basic composition utility for Fusion spec",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {