Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ardatan/graphql-tools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @graphql-tools/merge@6.2.11
Choose a base ref
...
head repository: ardatan/graphql-tools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @graphql-tools/merge@6.2.12
Choose a head ref

Commits on Mar 24, 2021

  1. Copy the full SHA
    f84e7b1 View commit details
  2. Copy the full SHA
    194ac37 View commit details
  3. chore(release): update monorepo packages versions (#2762)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Mar 24, 2021
    Copy the full SHA
    3c42fdd View commit details
  4. fix(deps): update dependency relay-compiler to v11.0.1 (#2763)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 24, 2021
    Copy the full SHA
    a8f5abd View commit details
  5. chore(deps): update dependency @apollo/client to v3.3.13 (#2764)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 24, 2021
    Copy the full SHA
    a872d70 View commit details

Commits on Mar 25, 2021

  1. chore(deps): update dependency typedoc to v0.20.34 (#2765)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 25, 2021
    Copy the full SHA
    5aa68bf View commit details
  2. chore(deps): update dependency @types/node to v14.14.36 (#2766)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 25, 2021
    Copy the full SHA
    9b113fc View commit details
  3. chore(deps): update dependency @types/jest to v26.0.22 (#2767)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 25, 2021
    Copy the full SHA
    29fbf0e View commit details

Commits on Mar 26, 2021

  1. fix(deps): update dependency graphql-ws to v4.3.1 (#2769)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 26, 2021
    Copy the full SHA
    8250b29 View commit details
  2. Copy the full SHA
    fba4233 View commit details
  3. Copy the full SHA
    f9db243 View commit details
  4. [deploy_website] Update stitch-schema-extensions.md (#2771)

    At least minor explanation :)
    tomasstrejcek authored Mar 26, 2021
    Copy the full SHA
    bac0e5a View commit details

Commits on Mar 27, 2021

  1. chore(deps): update babel monorepo to v7.13.13 (#2772)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 27, 2021
    Copy the full SHA
    27ccd14 View commit details
  2. chore(deps): update dependency @types/node to v14.14.37 (#2774)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 27, 2021
    Copy the full SHA
    14e0483 View commit details
  3. chore(deps): update dependency @vue/compiler-sfc to v3.0.8 (#2773)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 27, 2021
    Copy the full SHA
    0f69d88 View commit details
  4. chore(deps): update dependency eslint to v7.23.0 (#2775)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 27, 2021
    Copy the full SHA
    2d934f6 View commit details
  5. chore(deps): update dependency @vue/compiler-sfc to v3.0.9 (#2776)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 27, 2021
    Copy the full SHA
    c161989 View commit details

Commits on Mar 29, 2021

  1. fix(deps): update dependency graphql-ws to v4.3.2 (#2780)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 29, 2021
    Copy the full SHA
    f048267 View commit details
  2. chore(deps): update dependency husky to v6 (#2781)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 29, 2021
    Copy the full SHA
    d8aacd0 View commit details

Commits on Mar 30, 2021

  1. chore(deps): update babel monorepo to v7.13.14 (#2782)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 30, 2021
    Copy the full SHA
    25163b8 View commit details
  2. chore(deps): update typescript-eslint monorepo to v4.20.0 (#2783)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 30, 2021
    Copy the full SHA
    43aaf48 View commit details
  3. fix(deps): update dependency cross-fetch to v3.1.3 (#2785)

    * fix(deps): update dependency cross-fetch to v3.1.3
    
    * fix(url-loader): fix ts errors
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
    3 people authored Mar 30, 2021
    Copy the full SHA
    9272510 View commit details

Commits on Mar 31, 2021

  1. chore(deps): update dependency @vue/compiler-sfc to v3.0.10 (#2787)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Mar 31, 2021
    Copy the full SHA
    9a5e589 View commit details
  2. Remove duplicate logic from loadFiles (#2788)

    * chore(load-files): remove duplicate logic from loadFiles
    
    * add changeset
    hehex9 authored Mar 31, 2021
    Copy the full SHA
    7c6e008 View commit details
  3. chore(release): update monorepo packages versions (#2791)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Mar 31, 2021
    Copy the full SHA
    b29b043 View commit details

Commits on Apr 1, 2021

  1. fix(deps): update dependency classnames to v2.3.0 (#2792)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 1, 2021
    Copy the full SHA
    e147fcf View commit details

Commits on Apr 2, 2021

  1. chore(deps): update dependency @vue/compiler-sfc to v3.0.11 (#2793)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 2, 2021
    Copy the full SHA
    6494ae9 View commit details
  2. chore(deps): update dependency @types/ws to v7.4.1 (#2794)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 2, 2021
    Copy the full SHA
    75fe51f View commit details

Commits on Apr 3, 2021

  1. fix(deps): update dependency classnames to v2.3.1 (#2796)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 3, 2021
    Copy the full SHA
    dfd9005 View commit details
  2. chore(deps): update dependency @changesets/cli to v2.15.0 (#2317)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 3, 2021
    Copy the full SHA
    a5d077c View commit details
  3. fix(deps): update dependency cross-fetch to v3.1.4 (#2797)

    * fix(deps): update dependency cross-fetch to v3.1.4
    
    * Fix build
    
    * Add husky gitignore
    
    * Fix husky
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
    3 people authored Apr 3, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f8bfe8c View commit details
  4. chore(deps): update dependency typedoc to v0.20.35 (#2437)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 3, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b0e07a8 View commit details

Commits on Apr 5, 2021

  1. chore(deps): update dependency @apollo/client to v3.3.14 (#2798)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 5, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9a03b6a View commit details
  2. chore(deps): update typescript-eslint monorepo to v4.21.0 (#2799)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 5, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    10b88ac View commit details
  3. fix(deps): update dependency tslib to ~2.2.0 (#2800)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 5, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0338f98 View commit details

Commits on Apr 6, 2021

  1. chore(deps): update dependency concurrently to v6.0.1 (#2801)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 6, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b2b1247 View commit details
  2. chore(deps): update dependency typedoc-plugin-markdown to v3.6.1 (#2802)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 6, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c4bf909 View commit details
  3. enhance(stitch) Multiple key access for merged types (#2554)

    * multi-access types.
    
    * dont use .flat() for backwards support.
    
    * fix typescript errors.
    
    * raise errors for accessors with base selectionSet or fieldName.
    
    * Remove duplicate interface field
    
    * clone accessors.
    
    * split accessors with canonical.
    
    * rename files.
    
    * include resolver in pairing error.
    
    * why yes, typescript, I did mean "resolve".
    
    * update "accessor" to "entryPoint"
    
    * Create two-tips-suffer.md
    
    * add documentation.
    gmac authored Apr 6, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6aed171 View commit details
  4. chore(release): update monorepo packages versions (#2803)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Apr 6, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    981d2a5 View commit details

Commits on Apr 7, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6848497 View commit details
  2. [deploy_website] enhance(docs) clarify batchDelegateToSchema results …

    …implicit contract (#2790)
    
    * enhance(docs) clarify batchDelegateToSchema results implicit contract
    
    * enhance(docs) clarify batchDelegateToSchema results, mention valuesFromResults
    BrendanBall authored Apr 7, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8be6d3f View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    415df64 View commit details
  4. [deploy_website] No Algolia scraper (#2807)

    * Delete config.json
    
    * Update website.yml
    kamilkisiela authored Apr 7, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    05e2671 View commit details
  5. hide cache (#2810)

    yaacovCR authored Apr 7, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3cf6341 View commit details

Commits on Apr 8, 2021

  1. chore(deps): update dependency typescript to v4.2.4 (#2809)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 8, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    73d342e View commit details
  2. chore(deps): update dependency @changesets/cli to v2.16.0 (#2812)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 8, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d4bbc8e View commit details
  3. fix(stitching-directives): to allow keys to include lists (#2811)

    * remove unnecessary type
    
    * rename things
    
    key was being overused and sometimes used incorrectly
    
    * filter original result
    
    in preparation for reducing the number of mapping instructions, leads to better type safety and marginal performance benefit when passing the entire key/entity as an argument
    
    * stab at #2735
    
    * add changeset
    
    * still no tests
    yaacovCR authored Apr 8, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d7b4e09 View commit details
  4. chore(release): update monorepo packages versions (#2814)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Apr 8, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    67818dd View commit details
  5. chore(deps): update babel monorepo to v7.13.15 (#2815)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 8, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    20a066e View commit details

Commits on Apr 10, 2021

  1. chore(deps): update dependency eslint to v7.24.0 (#2822)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Apr 10, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    940a0a2 View commit details
Showing with 2,042 additions and 926 deletions.
  1. +0 −6 .github/workflows/website.yml
  2. +1 −0 .gitignore
  3. +1 −0 .husky/.gitignore
  4. +0 −51 algolia/config.json
  5. +17 −17 package.json
  6. +4 −4 packages/batch-delegate/package.json
  7. +1 −1 packages/batch-execute/package.json
  8. +49 −0 packages/delegate/CHANGELOG.md
  9. +3 −3 packages/delegate/package.json
  10. +1 −0 packages/delegate/src/index.ts
  11. +7 −3 packages/delegate/src/subschemaConfig.ts
  12. +7 −4 packages/delegate/src/types.ts
  13. +5 −5 packages/graphql-tag-pluck/package.json
  14. +1 −1 packages/graphql-tools/package.json
  15. +1 −1 packages/import/package.json
  16. +3 −3 packages/links/package.json
  17. +6 −0 packages/load-files/CHANGELOG.md
  18. +2 −2 packages/load-files/package.json
  19. +0 −9 packages/load-files/src/index.ts
  20. +8 −0 packages/load/CHANGELOG.md
  21. +3 −3 packages/load/package.json
  22. +1 −1 packages/load/tests/loaders/schema/schema-from-json.spec.ts
  23. +64 −0 packages/load/tests/loaders/schema/schema-from-string.spec.ts
  24. +2 −2 packages/loaders/apollo-engine/package.json
  25. +1 −1 packages/loaders/code-file/package.json
  26. +1 −1 packages/loaders/git/package.json
  27. +2 −2 packages/loaders/github/package.json
  28. +1 −1 packages/loaders/graphql-file/package.json
  29. +1 −1 packages/loaders/json-file/package.json
  30. +1 −1 packages/loaders/module/package.json
  31. +1 −1 packages/loaders/prisma/package.json
  32. +4 −4 packages/loaders/url/package.json
  33. +0 −1 packages/loaders/url/src/index.ts
  34. +6 −0 packages/merge/CHANGELOG.md
  35. +2 −2 packages/merge/package.json
  36. +0 −1 packages/merge/src/typedefs-mergers/schema-def.ts
  37. +1 −1 packages/mock/package.json
  38. +1 −1 packages/node-require/package.json
  39. +1 −1 packages/optimize/package.json
  40. +2 −2 packages/relay-operation-optimizer/package.json
  41. +1 −1 packages/resolvers-composition/package.json
  42. +1 −1 packages/schema/package.json
  43. +44 −0 packages/stitch/CHANGELOG.md
  44. +3 −3 packages/stitch/package.json
  45. +0 −1 packages/stitch/src/index.ts
  46. +25 −8 packages/stitch/src/stitchSchemas.ts
  47. +3 −0 packages/stitch/src/subschemaConfigTransforms/index.ts
  48. +6 −3 ...ch/src/{isolateComputedFields.ts → subschemaConfigTransforms/isolateComputedFieldsTransformer.ts}
  49. +51 −0 packages/stitch/src/subschemaConfigTransforms/splitMergedTypeEntryPointsTransformer.ts
  50. +1 −1 packages/stitch/src/types.ts
  51. +69 −7 packages/stitch/tests/{isolateComputedFields.test.ts → isolateComputedFieldsTransformer.test.ts}
  52. +162 −0 packages/stitch/tests/mergeMultipleEntryPoints.test.ts
  53. +179 −0 packages/stitch/tests/splitMergedTypeEntryPointsTransformer.test.ts
  54. +2 −1 packages/stitch/tests/typeMergingWithDirectives.test.ts
  55. +18 −0 packages/stitching-directives/CHANGELOG.md
  56. +2 −2 packages/stitching-directives/package.json
  57. +0 −48 packages/stitching-directives/src/expandUnqualifiedKeys.ts
  58. +30 −0 packages/stitching-directives/src/getSourcePaths.ts
  59. +21 −32 packages/stitching-directives/src/parseMergeArgsExpr.ts
  60. +22 −0 packages/stitching-directives/src/pathsFromSelectionSet.ts
  61. +0 −38 packages/stitching-directives/src/pathsFromSelectionSets.ts
  62. +6 −6 packages/stitching-directives/src/preparseMergeArgsExpr.ts
  63. +34 −9 packages/stitching-directives/src/properties.ts
  64. +26 −26 packages/stitching-directives/src/stitchingDirectivesTransformer.ts
  65. +1 −1 packages/stitching-directives/src/stitchingDirectivesValidator.ts
  66. +9 −8 packages/stitching-directives/src/types.ts
  67. +0 −37 packages/stitching-directives/tests/expandUnqualifiedKeys.test.ts
  68. +82 −58 packages/stitching-directives/tests/parseMergeArgsExpr.test.ts
  69. +3 −10 packages/stitching-directives/tests/pathsFromSelectionSets.ts
  70. +8 −8 packages/stitching-directives/tests/properties.test.ts
  71. +153 −0 packages/stitching-directives/tests/stitchingDirectivesTransformer.test.ts
  72. +23 −5 packages/stitching-directives/tests/stitchingDirectivesValidator.test.ts
  73. +12 −0 packages/utils/CHANGELOG.md
  74. +2 −2 packages/utils/package.json
  75. +44 −0 packages/utils/src/create-schema-definition.ts
  76. +1 −0 packages/utils/src/index.ts
  77. +2 −2 packages/utils/src/stub.ts
  78. +1 −1 packages/webpack-loader/package.json
  79. +1 −1 packages/wrap/package.json
  80. +4 −4 patches/{@changesets+cli+2.14.1.patch → @changesets+cli+2.15.0.patch}
  81. +6 −6 patches/@docsearch+react+3.0.0-alpha.34.patch
  82. +35 −0 patches/@docusaurus+theme-search-algolia+2.0.0-alpha.72.patch
  83. +0 −13 patches/@docusaurus+theme-search-algolia+2.0.0-alpha.ffe8b6106.patch
  84. +14 −1 website/docs/migration-from-tools.md
  85. +1 −1 website/docs/schema-directives.md
  86. +1 −1 website/docs/schema-merging.md
  87. +1 −1 website/docs/schema-stitching.md
  88. +2 −0 website/docs/schema-wrapping.md
  89. +6 −2 website/docs/stitch-combining-schemas.md
  90. +5 −2 website/docs/stitch-directives-sdl.md
  91. +7 −1 website/docs/stitch-schema-extensions.md
  92. +56 −0 website/docs/stitch-type-merging.md
  93. +1 −2 website/docusaurus.config.js
  94. +3 −3 website/package.json
  95. BIN website/static/img/distributed-graph.png
  96. +640 −432 yarn.lock
6 changes: 0 additions & 6 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -41,9 +41,3 @@ jobs:
run: yarn deploy:website
env:
GIT_USER: theguild-bot
- name: Index Docs
uses: darrenjennings/algolia-docsearch-action@master
with:
algolia_api_key: ${{ secrets.ALGOLIA_API_KEY }}
algolia_application_id: ${{ secrets.ALGOLIA_APPLICATION_ID }}
file: algolia/config.json
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -67,6 +67,7 @@ build
temp
.idea
.bob
.cache
.DS_Store

test-results/
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
51 changes: 0 additions & 51 deletions algolia/config.json

This file was deleted.

34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
"description": "Useful tools to create and manipulate GraphQL schemas.",
"private": true,
"scripts": {
"postinstall": "patch-package",
"postinstall": "patch-package && husky install",
"predeploy:website": "yarn build:api-docs",
"deploy:website": "cd website && yarn deploy",
"ts:transpile": "concurrently \"tsc --project tsconfig.build.json\" \"tsc --project tsconfig.build.es5.json\"",
@@ -42,37 +42,37 @@
},
"devDependencies": {
"@ardatan/bob-the-bundler": "1.2.2",
"@babel/core": "7.13.10",
"@babel/core": "7.13.15",
"@babel/plugin-proposal-class-properties": "7.13.0",
"@babel/preset-env": "7.13.12",
"@babel/preset-env": "7.13.15",
"@babel/preset-typescript": "7.13.0",
"@changesets/cli": "2.14.1",
"@types/jest": "26.0.21",
"@types/node": "14.14.35",
"@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "4.19.0",
"@changesets/cli": "2.16.0",
"@types/jest": "26.0.22",
"@types/node": "14.14.37",
"@typescript-eslint/eslint-plugin": "4.22.0",
"@typescript-eslint/parser": "4.22.0",
"babel-jest": "26.6.3",
"concurrently": "6.0.0",
"eslint": "7.22.0",
"eslint-config-prettier": "8.1.0",
"concurrently": "6.0.2",
"eslint": "7.24.0",
"eslint-config-prettier": "8.2.0",
"eslint-config-standard": "16.0.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-promise": "5.1.0",
"eslint-plugin-standard": "5.0.0",
"graphql": "15.5.0",
"graphql-helix": "1.2.3",
"graphql-subscriptions": "1.2.1",
"husky": "4.3.8",
"husky": "6.0.0",
"jest": "26.6.3",
"lint-staged": "10.5.4",
"nock": "13.0.11",
"patch-package": "6.4.7",
"prettier": "2.2.1",
"ts-jest": "26.5.4",
"typedoc": "0.20.33",
"typedoc-plugin-markdown": "3.6.0",
"typescript": "4.2.3"
"typedoc": "0.20.35",
"typedoc-plugin-markdown": "3.6.1",
"typescript": "4.2.4"
},
"husky": {
"hooks": {
@@ -99,6 +99,6 @@
},
"resolutions": {
"graphql": "15.5.0",
"@changesets/apply-release-plan": "4.2.0"
"@changesets/apply-release-plan": "5.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/batch-delegate/package.json
Original file line number Diff line number Diff line change
@@ -22,14 +22,14 @@
"input": "./src/index.ts"
},
"dependencies": {
"@graphql-tools/delegate": "^7.1.0",
"@graphql-tools/delegate": "^7.1.2",
"dataloader": "2.0.0",
"tslib": "~2.1.0"
"tslib": "~2.2.0"
},
"devDependencies": {
"@graphql-tools/schema": "7.1.3",
"@graphql-tools/stitch": "7.5.0",
"@graphql-tools/utils": "7.7.0"
"@graphql-tools/stitch": "7.5.1",
"@graphql-tools/utils": "7.7.2"
},
"publishConfig": {
"access": "public",
2 changes: 1 addition & 1 deletion packages/batch-execute/package.json
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
"@graphql-tools/utils": "^7.7.0",
"dataloader": "2.0.0",
"is-promise": "4.0.0",
"tslib": "~2.1.0"
"tslib": "~2.2.0"
},
"publishConfig": {
"access": "public",
49 changes: 49 additions & 0 deletions packages/delegate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
# @graphql-tools/delegate

## 7.1.2

### Patch Changes

- 6aed1714: Allows `MergedTypeConfig` to be written with an `entryPoints` array for multiple merged type entry points, each with their own `fieldName` and `selectionSet`:

```js
{
schema: testSchema,
merge: {
Product: {
entryPoints: [{
selectionSet: '{ id }',
fieldName: 'productById',
key: ({ id, price, weight }) => ({ id, price, weight }),
argsFromKeys: (key) => ({ key }),
}, {
selectionSet: '{ upc }',
fieldName: 'productByUpc',
key: ({ upc, price, weight }) => ({ upc, price, weight }),
argsFromKeys: (key) => ({ key }),
}],
}
}
}
```

These multiple entry points accommodate types with multiple keys across services that rely on a central service to join them, for example:

- Catalog service: `type Product { upc }`
- Vendors service: `type Product { upc id }`
- Reviews service: `type Product { id }`

Given this graph, the possible traversals require the Vendors service to provide entry points for each unique key format:

- `Catalog > Vendors > Reviews`
- `Catalog < Vendors > Reviews`
- `Catalog < Vendors < Reviews`

Is it highly recommended that you enable query batching for subschemas with multiple entry points.

## 7.1.1

### Patch Changes

- f84e7b15: fix(delegate): export executor typings not to have breaking change
- Updated dependencies [194ac370]
- @graphql-tools/utils@7.7.1

## 7.1.0

### Minor Changes
6 changes: 3 additions & 3 deletions packages/delegate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/delegate",
"version": "7.1.0",
"version": "7.1.2",
"description": "A set of utils for faster development of GraphQL tools",
"repository": {
"type": "git",
@@ -24,11 +24,11 @@
"dependencies": {
"@graphql-tools/batch-execute": "^7.1.0",
"@graphql-tools/schema": "^7.0.0",
"@graphql-tools/utils": "^7.7.0",
"@graphql-tools/utils": "^7.7.1",
"@ardatan/aggregate-error": "0.0.6",
"dataloader": "2.0.0",
"is-promise": "4.0.0",
"tslib": "~2.1.0"
"tslib": "~2.2.0"
},
"publishConfig": {
"access": "public",
1 change: 1 addition & 0 deletions packages/delegate/src/index.ts
Original file line number Diff line number Diff line change
@@ -9,3 +9,4 @@ export * from './resolveExternalValue';
export * from './subschemaConfig';
export * from './transforms';
export * from './types';
export { Executor, Subscriber, AsyncExecutor, SyncExecutor, ExecutionParams } from '@graphql-tools/utils';
10 changes: 7 additions & 3 deletions packages/delegate/src/subschemaConfig.ts
Original file line number Diff line number Diff line change
@@ -13,10 +13,14 @@ export function cloneSubschemaConfig(subschemaConfig: SubschemaConfig): Subschem
if (newSubschemaConfig.merge != null) {
newSubschemaConfig.merge = { ...subschemaConfig.merge };
Object.keys(newSubschemaConfig.merge).forEach(typeName => {
newSubschemaConfig.merge[typeName] = { ...subschemaConfig.merge[typeName] };
const mergedTypeConfig = (newSubschemaConfig.merge[typeName] = { ...subschemaConfig.merge[typeName] });

const fields = newSubschemaConfig.merge[typeName].fields;
if (fields != null) {
if (mergedTypeConfig.entryPoints != null) {
mergedTypeConfig.entryPoints = mergedTypeConfig.entryPoints.map(entryPoint => ({ ...entryPoint }));
}

if (mergedTypeConfig.fields != null) {
const fields = (mergedTypeConfig.fields = { ...mergedTypeConfig.fields });
Object.keys(fields).forEach(fieldName => {
fields[fieldName] = { ...fields[fieldName] };
});
11 changes: 7 additions & 4 deletions packages/delegate/src/types.ts
Original file line number Diff line number Diff line change
@@ -147,13 +147,16 @@ export interface SubschemaConfig<K = any, V = any, C = K, TContext = Record<stri
batchingOptions?: BatchingOptions<K, V, C>;
}

export interface MergedTypeConfig<K = any, V = any, TContext = Record<string, any>>
extends MergedTypeResolverOptions<K, V> {
selectionSet?: string;
export interface MergedTypeConfig<K = any, V = any, TContext = Record<string, any>> extends MergedTypeEntryPoint<K, V, TContext> {
entryPoints?: Array<MergedTypeEntryPoint>;
fields?: Record<string, MergedFieldConfig>;
computedFields?: Record<string, { selectionSet?: string }>;
key?: (originalResult: any) => K;
canonical?: boolean;
}

export interface MergedTypeEntryPoint<K = any, V = any, TContext = Record<string, any>> extends MergedTypeResolverOptions<K, V> {
selectionSet?: string;
key?: (originalResult: any) => K;
resolve?: MergedTypeResolver<TContext>;
}

10 changes: 5 additions & 5 deletions packages/graphql-tag-pluck/package.json
Original file line number Diff line number Diff line change
@@ -19,15 +19,15 @@
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@babel/parser": "7.13.12",
"@babel/traverse": "7.13.0",
"@babel/types": "7.13.12",
"@babel/parser": "7.13.15",
"@babel/traverse": "7.13.15",
"@babel/types": "7.13.14",
"@graphql-tools/utils": "^7.0.0",
"tslib": "~2.1.0"
"tslib": "~2.2.0"
},
"devDependencies": {
"@types/babel__traverse": "7.11.1",
"@vue/compiler-sfc": "3.0.7"
"@vue/compiler-sfc": "3.0.11"
},
"buildOptions": {
"external": [
2 changes: 1 addition & 1 deletion packages/graphql-tools/package.json
Original file line number Diff line number Diff line change
@@ -47,6 +47,6 @@
"@graphql-tools/stitch": "^7.3.0",
"@graphql-tools/utils": "^7.0.1",
"@graphql-tools/wrap": "^7.0.0",
"tslib": "~2.1.0"
"tslib": "~2.2.0"
}
}
2 changes: 1 addition & 1 deletion packages/import/package.json
Original file line number Diff line number Diff line change
@@ -25,6 +25,6 @@
},
"dependencies": {
"resolve-from": "5.0.0",
"tslib": "~2.1.0"
"tslib": "~2.2.0"
}
}
6 changes: 3 additions & 3 deletions packages/links/package.json
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
]
},
"devDependencies": {
"@apollo/client": "3.3.12",
"@apollo/client": "3.3.15",
"@types/apollo-upload-client": "14.1.0",
"@types/graphql-upload": "8.0.4",
"express-graphql": "0.12.0",
@@ -38,10 +38,10 @@
"@graphql-tools/delegate": "^7.1.0",
"@graphql-tools/utils": "^7.7.0",
"apollo-upload-client": "14.1.3",
"cross-fetch": "3.1.2",
"cross-fetch": "3.1.4",
"form-data": "4.0.0",
"is-promise": "4.0.0",
"tslib": "~2.1.0"
"tslib": "~2.2.0"
},
"publishConfig": {
"access": "public",
6 changes: 6 additions & 0 deletions packages/load-files/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @graphql-tools/load-files

## 6.3.2

### Patch Changes

- 7c6e0083: Remove duplicate code

## 6.3.1

### Patch Changes
4 changes: 2 additions & 2 deletions packages/load-files/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/load-files",
"version": "6.3.1",
"version": "6.3.2",
"description": "A set of utils for faster development of GraphQL tools",
"repository": {
"type": "git",
@@ -22,7 +22,7 @@
"dependencies": {
"globby": "11.0.3",
"unixify": "1.0.0",
"tslib": "~2.1.0"
"tslib": "~2.2.0"
},
"publishConfig": {
"access": "public",
9 changes: 0 additions & 9 deletions packages/load-files/src/index.ts
Original file line number Diff line number Diff line change
@@ -233,15 +233,6 @@ export async function loadFiles(
if (extension === formatExtension('js') || extension === formatExtension('ts') || execOptions.useRequire) {
const fileExports = await requireMethod(path);
const extractedExport = extractExports(fileExports);

if (extractedExport.resolver) {
return extractedExport.resolver;
}

if (extractedExport.resolvers) {
return extractedExport.resolvers;
}

return extractedExport;
} else {
return readFile(path, { encoding: 'utf-8' });
Loading