@graphql-mesh/fusion-composition 0.8.26-alpha-20260118223538-b1a0e7db37cc31186c447a6a29661df7dda155f4 → 0.8.26-alpha-20260118225103-3b5bf315a8e0a44260be62645758a7539c89db4c

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,7 +503,6 @@ 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);
507
506
  let argName;
508
507
  let arg;
509
508
  if (argEntries.length === 1) {
@@ -514,7 +513,7 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
514
513
  }
515
514
  else {
516
515
  for (const [currentArgName, currentArg] of argEntries) {
517
- if (currentArgName === fieldName || pluralFieldName === currentArgName) {
516
+ if (currentArgName === fieldName || (0, pluralize_1.default)(fieldName) === currentArgName) {
518
517
  argName = currentArgName;
519
518
  arg = currentArg;
520
519
  break;
@@ -550,9 +549,8 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
550
549
  case (0, snake_case_1.snakeCase)(pluralTypeName):
551
550
  case (0, snake_case_1.snakeCase)(`get_${pluralTypeName}_by_${fieldName}`):
552
551
  case (0, snake_case_1.snakeCase)(`${pluralTypeName}_by_${fieldName}`):
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`): {
552
+ case (0, snake_case_1.snakeCase)(`get_${pluralTypeName}_by_${fieldName}s`):
553
+ case (0, snake_case_1.snakeCase)(`${pluralTypeName}_by_${fieldName}s`): {
556
554
  directiveExtensions.merge ||= [];
557
555
  directiveExtensions.merge.push({
558
556
  subgraph: subgraphName,
package/esm/compose.js CHANGED
@@ -496,7 +496,6 @@ 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);
500
499
  let argName;
501
500
  let arg;
502
501
  if (argEntries.length === 1) {
@@ -507,7 +506,7 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
507
506
  }
508
507
  else {
509
508
  for (const [currentArgName, currentArg] of argEntries) {
510
- if (currentArgName === fieldName || pluralFieldName === currentArgName) {
509
+ if (currentArgName === fieldName || pluralize(fieldName) === currentArgName) {
511
510
  argName = currentArgName;
512
511
  arg = currentArg;
513
512
  break;
@@ -543,9 +542,8 @@ function addAnnotationsForSemanticConventions({ queryFieldName, queryFieldConfig
543
542
  case snakeCase(pluralTypeName):
544
543
  case snakeCase(`get_${pluralTypeName}_by_${fieldName}`):
545
544
  case snakeCase(`${pluralTypeName}_by_${fieldName}`):
546
- case snakeCase(`get_${pluralTypeName}_by_${pluralFieldName}`):
547
- case snakeCase(`${pluralTypeName}_by_${pluralFieldName}`):
548
- case snakeCase(`${pluralTypeName}_by_${pluralFieldName}_list`): {
545
+ case snakeCase(`get_${pluralTypeName}_by_${fieldName}s`):
546
+ case snakeCase(`${pluralTypeName}_by_${fieldName}s`): {
549
547
  directiveExtensions.merge ||= [];
550
548
  directiveExtensions.merge.push({
551
549
  subgraph: subgraphName,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-mesh/fusion-composition",
3
- "version": "0.8.26-alpha-20260118223538-b1a0e7db37cc31186c447a6a29661df7dda155f4",
3
+ "version": "0.8.26-alpha-20260118225103-3b5bf315a8e0a44260be62645758a7539c89db4c",
4
4
  "description": "Basic composition utility for Fusion spec",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-mesh/utils": "^0.104.20",
10
+ "@graphql-mesh/utils": "0.104.21-alpha-20260118225103-3b5bf315a8e0a44260be62645758a7539c89db4c",
11
11
  "@graphql-tools/schema": "^10.0.31",
12
12
  "@graphql-tools/stitching-directives": "^4.0.10",
13
13
  "@graphql-tools/utils": "^11.0.0",