Skip to Content
GraphQL Tools

@graphql-tools/import

7.1.13

Patch Changes

7.1.12

Patch Changes

7.1.11

Patch Changes

7.1.10

Patch Changes

7.1.9

Patch Changes

7.1.8

Patch Changes

7.1.7

Patch Changes

7.1.6

Patch Changes

7.1.5

Patch Changes

7.1.4

Patch Changes

7.1.3

Patch Changes

7.1.2

Patch Changes

7.1.1

Patch Changes

  • #7433 07124d5 Thanks @HunterLarco! - Fix support for absolute path aliases in GraphQL imports

    Path aliases configured with absolute paths (e.g., /*src/*) now work correctly alongside relative aliases (e.g., @/*src/*). This allows more flexible aliasing configurations when using tsconfig.json#paths syntax for GraphQL imports.

  • #7437 211ef44 Thanks @HunterLarco! - enhance GraphQL schema import error debugging with source locations

7.1.0

Minor Changes

  • #7310 692cfeb Thanks @HunterLarco! - GraphQL schemas in large projects, especially monorepos, suffer from fragile and verbose relative import paths that become difficult to maintain as projects grow. This change brings TypeScript’s popular tsconfig.json#paths aliasing syntax to GraphQL imports, enabling clean, maintainable import statements across your GraphQL schema files.

    Before - Brittle relative imports:

    #import "../../../shared/models/User.graphql" #import "../../../../common/types/Product.graphql"

    After - Clean, semantic aliases:

    #import "@models/User.graphql" #import "@types/Product.graphql"

    Configuration Example

    { mappings: { '@models/*': path.join(__dirname, './models/*'), '@types/*': path.join(__dirname, './shared/types/*'), } }

    This change is introduced in a backwards compatible way to ensure no existing use cases are broken while using familiar patterns to typescript developers for structuring import aliases.

7.0.21

Patch Changes

7.0.20

Patch Changes

7.0.19

Patch Changes

  • #7225 99e6faf Thanks @jdolle! - Support ‘extend schema’ syntax and add ‘link’ to the list of builtins so that it doesnt need a directive definition for federated schemas

7.0.18

Patch Changes

7.0.17

Patch Changes

7.0.16

Patch Changes

7.0.15

Patch Changes

7.0.14

Patch Changes

7.0.13

Patch Changes

7.0.12

Patch Changes

7.0.11

Patch Changes

7.0.10

Patch Changes

7.0.9

Patch Changes

7.0.8

Patch Changes

7.0.7

Patch Changes

7.0.6

Patch Changes

7.0.5

Patch Changes

7.0.4

Patch Changes

7.0.3

Patch Changes

7.0.2

Patch Changes

7.0.1

Patch Changes

7.0.0

Major Changes

Patch Changes

6.7.18

Patch Changes

6.7.17

Patch Changes

6.7.16

Patch Changes

6.7.15

Patch Changes

6.7.14

Patch Changes

6.7.13

Patch Changes

6.7.12

Patch Changes

6.7.11

Patch Changes

6.7.10

Patch Changes

6.7.9

Patch Changes

6.7.8

Patch Changes

6.7.7

Patch Changes

6.7.6

Patch Changes

6.7.5

Patch Changes

6.7.4

Patch Changes

6.7.3

Patch Changes

6.7.2

Patch Changes

6.7.1

Patch Changes

6.7.0

Minor Changes

  • d76a299c: Support TypeScript module resolution.

Patch Changes

  • Updated dependencies [a0abbbcd]
  • Updated dependencies [d76a299c]

6.6.18

Patch Changes

6.6.17

Patch Changes

  • 041c5ba1: Use caret range for the tslib dependency
  • Updated dependencies [041c5ba1]

6.6.16

Patch Changes

  • a5386350: fix(import): import dependent interfaces correctly
  • Updated dependencies [da7ad43b]

6.6.15

Patch Changes

6.6.14

Patch Changes

6.6.13

Patch Changes

6.6.12

Patch Changes

6.6.11

Patch Changes

6.6.10

Patch Changes

6.6.9

Patch Changes

6.6.8

Patch Changes

6.6.7

Patch Changes

6.6.6

Patch Changes

6.6.5

Patch Changes

  • Updated dependencies [43a60f93]
  • Updated dependencies [20e1058b]

6.6.4

Patch Changes

  • 7c6b28e6: Changes to the documentation regarding processImport
  • Updated dependencies [69b316c2]

6.6.3

Patch Changes

6.6.2

Patch Changes

6.6.1

Patch Changes

  • Updated dependencies [960e178a]
  • Updated dependencies [947a3fe0]

6.6.0

Minor Changes

  • 61e00a6d: fix(import): allow import nested fragments

6.5.8

Patch Changes

6.5.7

Patch Changes

  • 4bfb3428: enhance: use ^ for tslib dependency
  • Updated dependencies [4bfb3428]

6.5.6

Patch Changes

6.5.5

Patch Changes

6.5.4

Patch Changes

6.5.3

Patch Changes

  • 8ffbb600: Remove code causing Maximum call stack size exceeded in @graphql-tools/import package.

6.5.2

Patch Changes

6.5.1

Patch Changes

  • be9fad09: fix(import): add missing dependency

6.5.0

Minor Changes

  • 1e90f094: Refactor processImport and export helper functions for parsing GraphQL imports

6.4.2

Patch Changes

  • a78fd76c: Schemata containing only imports will now resolve imported type’s transitive dependencies.

6.4.1

Patch Changes

  • 652c21d7: #3327 - Transitive schema definition dependencies are now included in building out the full dependency structure.

6.4.0

Minor Changes

  • c5b0719c: feat: GraphQL v16 support

6.3.1

Patch Changes

  • 77902864: fix(import): handle nested imports correctly

6.3.0

Minor Changes

  • 87709f42: processImport() now lets you know all the visited files by passing a map as a fourth argument.

6.2.6

Patch Changes

  • 5ec2e354: enhance(import): handle duplicate definitions

6.2.5

Patch Changes

  • eacf0dc3: Replace fs-extra with native methods

6.2.4

Patch Changes

  • 32c3c4f8: feat(import): support specifiedBy builtin directive
  • 533d6d53: Bump all packages to allow adjustments