@graphql-tools/graphql-file-loader
9.1.2 · 10 Nov 2026MIT13.9M / weekRepositoryHomepagenpmAtom feed
131 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 9.x · latest line
9.1.1 – 9.1.22 releases that only update dependencies@graphql-tools/utils 13.2.2@graphql-tools/import 8.0.9@graphql-tools/load-files 8.0.9Show each
9.1.0
26 Oct 2026loadDocuments/loadTypedefsnow accepterrorHandlingso a single invalid file does not have to hide the rest of the load.A glob that mixes a valid operation with broken SDL used to throw the first
Syntax Errorand drop every other file:# valid.query.graphql query ValidQuery { a }# broken-a.query.graphql query { aawait loadDocuments('**/*.query.graphql', { loaders: [new GraphQLFileLoader()], }); // throws Syntax ErrorerrorHandlingchooses what happens next. The default is unchanged (throwthe first error).aggregatewaits until every source is attempted, then throwsAggregateErrorwith each parse/load failure:await loadDocuments('**/*.query.graphql', { loaders: [new GraphQLFileLoader()], errorHandling: 'aggregate', });returndoes not throw. Failed sources stay in the result as{ location, error }without adocument, next to the sources that parsed:const sources = await loadDocuments('**/*.query.graphql', { loaders: [new GraphQLFileLoader(), new CodeFileLoader()], errorHandling: 'return', }); sources[0].document; // ValidQuery sources[1].document; // undefined sources[1].error; // GraphQLError: Syntax ErrorSourcenow has an optionalerrorfield.@graphql-tools/graphql-file-loaderand@graphql-tools/code-file-loaderhonor the same option.CodeFileLoader's existingnoSilentErrorsdefault is unchanged unlesserrorHandlingis set.Custom loader failures and incomplete inline documents (
query Foo {) follow the same option.errorHandling: 'throw'raises the first failure, notAggregateError.
@graphql-tools/graphql-file-loader@9.1.0
Minor Changes
loadDocuments/loadTypedefsnow accepterrorHandlingso a single invalid file does not have to hide the rest of the load.A glob that mixes a valid operation with broken SDL used to throw the first
Syntax Errorand drop every other file:# valid.query.graphql query ValidQuery { a }# broken-a.query.graphql query { aawait loadDocuments('**/*.query.graphql', { loaders: [new GraphQLFileLoader()], }); // throws Syntax ErrorerrorHandlingchooses what happens next. The default is unchanged (throwthe first error).aggregatewaits until every source is attempted, then throwsAggregateErrorwith each parse/load failure:await loadDocuments('**/*.query.graphql', { loaders: [new GraphQLFileLoader()], errorHandling: 'aggregate', });returndoes not throw. Failed sources stay in the result as{ location, error }without adocument, next to the sources that parsed:const sources = await loadDocuments('**/*.query.graphql', { loaders: [new GraphQLFileLoader(), new CodeFileLoader()], errorHandling: 'return', }); sources[0].document; // ValidQuery sources[1].document; // undefined sources[1].error; // GraphQLError: Syntax ErrorSourcenow has an optionalerrorfield.@graphql-tools/graphql-file-loaderand@graphql-tools/code-file-loaderhonor the same option.CodeFileLoader's existingnoSilentErrorsdefault is unchanged unlesserrorHandlingis set.Custom loader failures and incomplete inline documents (
query Foo {) follow the same option.errorHandling: 'throw'raises the first failure, notAggregateError.
9.0.0 – 9.0.67 releases with no change for you6 dependency updates, 1 without a note@graphql-tools/utils 13.1.3@graphql-tools/import 8.0.6@graphql-tools/load-files 8.0.6Show each
- 9.0.622 Oct 2026@graphql-tools/utils 13.1.3@graphql-tools/import 8.0.6@graphql-tools/load-files 8.0.6
- 9.0.522 Oct 2026@graphql-tools/utils 13.1.2@graphql-tools/import 8.0.5@graphql-tools/load-files 8.0.5
- 9.0.420 Oct 2026@graphql-tools/utils 13.1.1@graphql-tools/import 8.0.4@graphql-tools/load-files 8.0.4
- 9.0.320 Oct 2026@graphql-tools/utils 13.1.0@graphql-tools/import 8.0.3@graphql-tools/load-files 8.0.3
- 9.0.219 Oct 2026@graphql-tools/utils 13.0.2@graphql-tools/import 8.0.2@graphql-tools/load-files 8.0.2
- 9.0.119 Oct 2026@graphql-tools/utils 13.0.1@graphql-tools/import 8.0.1@graphql-tools/load-files 8.0.1
- 9.0.019 Oct 2026no note
- 8.x
8.1.24
15 Oct 2026Dependencies updates:
@graphql-tools/graphql-file-loader@8.1.24
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/import@^7.2.3↗︎ (from^7.2.2, independencies)Updated dependency
@graphql-tools/utils@^12.0.4↗︎ (from^12.0.3, independencies)
8.1.23
12 Oct 2026Dependencies updates:
@graphql-tools/graphql-file-loader@8.1.24
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/import@^7.2.3↗︎ (from^7.2.2, independencies)Updated dependency
@graphql-tools/utils@^12.0.4↗︎ (from^12.0.3, independencies)
8.1.21 – 8.1.222 releases that only update dependencies@graphql-tools/utils 12.0.3@graphql-tools/import 7.2.2Show each
8.1.20
7 Sep 2026# import "./file.graphql"(space after#) is a valid default import, and#importis processed even when it is not the first non-blank line of the file.
@graphql-tools/graphql-file-loader@8.1.20
Patch Changes
# import "./file.graphql"(space after#) is a valid default import, and#importis processed even when it is not the first non-blank line of the file.
8.1.9 – 8.1.1911 releases that only update dependencies@graphql-tools/utils 12.0.0@graphql-tools/import 7.1.19Show each
- 8.1.1912 Aug 2026@graphql-tools/utils 12.0.0@graphql-tools/import 7.1.19
- 8.1.1817 Jul 2026@graphql-tools/utils 11.2.2@graphql-tools/import 7.1.18
- 8.1.1717 Jul 2026@graphql-tools/utils 11.2.1@graphql-tools/import 7.1.17
- 8.1.166 Jul 2026@graphql-tools/utils 11.2.0@graphql-tools/import 7.1.16
- 8.1.1528 Jun 2026@graphql-tools/utils 11.1.1@graphql-tools/import 7.1.15
- 8.1.1423 Apr 2026@graphql-tools/utils 11.1.0@graphql-tools/import 7.1.14
- 8.1.139 Apr 2026@graphql-tools/utils 11.0.1@graphql-tools/import 7.1.13
- 8.1.126 Mar 2026@graphql-tools/import 7.1.12
- 8.1.115 Mar 2026@graphql-tools/import 7.1.11
- 8.1.1022 Jan 2026@graphql-tools/import 7.1.10
- 8.1.97 Jan 2026@graphql-tools/import 7.1.9@graphql-tools/utils 11.0.0
8.1.8
28 Nov 2025#7588
2118a80
Thanks @EmrysMyrddin! - dependencies updates:
@graphql-tools/graphql-file-loader@8.1.8
Patch Changes
#7588
2118a80
Thanks @EmrysMyrddin! - dependencies updates:Updated dependency
@graphql-tools/import@7.1.7↗︎
(from7.1.6, independencies)
8.1.7
21 Nov 2025#7588
2118a80
Thanks @EmrysMyrddin! - dependencies updates:
@graphql-tools/graphql-file-loader@8.1.8
Patch Changes
#7588
2118a80
Thanks @EmrysMyrddin! - dependencies updates:Updated dependency
@graphql-tools/import@7.1.7↗︎
(from7.1.6, independencies)
8.1.1 – 8.1.66 releases that only update dependencies@graphql-tools/utils 10.10.3@graphql-tools/import 7.1.6Show each
- 8.1.612 Nov 2025@graphql-tools/utils 10.10.3@graphql-tools/import 7.1.6
- 8.1.511 Nov 2025@graphql-tools/utils 10.10.2@graphql-tools/import 7.1.5
- 8.1.44 Nov 2025@graphql-tools/utils 10.10.1@graphql-tools/import 7.1.4
- 8.1.330 Oct 2025@graphql-tools/utils 10.10.0@graphql-tools/import 7.1.3
- 8.1.222 Sep 2025@graphql-tools/import 7.1.2
- 8.1.15 Sep 2025@graphql-tools/import 7.1.1
8.1.0
26 Aug 2025#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 populartsconfig.json#pathsaliasing 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.
@graphql-tools/graphql-file-loader@8.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 populartsconfig.json#pathsaliasing 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.
8.0.13 – 8.0.2210 releases that only update dependencies@graphql-tools/utils 10.9.1@graphql-tools/import 7.0.21Show each
- 8.0.2221 Jul 2025@graphql-tools/utils 10.9.1@graphql-tools/import 7.0.21
- 8.0.2117 Jul 2025@graphql-tools/import 7.0.20@graphql-tools/utils 10.9.0
- 8.0.2027 May 2025@graphql-tools/import 7.0.19
- 8.0.1913 Mar 2025@graphql-tools/utils 10.8.6@graphql-tools/import 7.0.18
- 8.0.1813 Mar 2025@graphql-tools/utils 10.8.5@graphql-tools/import 7.0.17
- 8.0.173 Mar 2025@graphql-tools/utils 10.8.4@graphql-tools/import 7.0.16
- 8.0.1625 Feb 2025@graphql-tools/utils 10.8.3@graphql-tools/import 7.0.15
- 8.0.1521 Feb 2025@graphql-tools/utils 10.8.2@graphql-tools/import 7.0.14
- 8.0.1410 Feb 2025@graphql-tools/utils 10.8.1@graphql-tools/import 7.0.13
- 8.0.1310 Feb 2025@graphql-tools/utils 10.8.0@graphql-tools/import 7.0.12
8.0.8 – 8.0.114 releases that only update dependencies@graphql-tools/utils 10.7.2@graphql-tools/import 7.0.11Show each
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.