GraphQL.js WG ·
GraphQL.js WG meetings · Jump to notesAgenda
GraphQL JS WG — June 2025
GraphQL-JS WG (Working Group) is a monthly virtual meeting of maintainers of commonly used GraphQL libraries and tools and significant contributors in the Javascript ecosystem, operated by the GraphQL Foundation. This is an open meeting in which anyone in the GraphQL community may attend.
The GraphQL-JS WG's primary purpose is to discuss and agree upon proposed changes to the GraphQL-JS reference implementation.
- Date & Time: June 25, 2025, 5:00 – 6:00 PM UTC
- View the calendar, or subscribe (Google Calendar, ical file).
- Please Note: The date or time may change. Please check this agenda the week of the meeting to confirm. While we try to keep all calendars accurate, this agenda document is the source of truth.
- Video Conference Link: https://zoom.us/j/96871026087
- Password: graphqljs
- Live Notes: Live Notes
Attendees
| Name | GitHub | Organization | Location |
|---|---|---|---|
| Jovi De Croock (Host) | @JoviDeCroock | Independent | Aalst, BE |
| Yaacov Rydzinski (Host) | @yaacovCR | Independent | Neve Daniel, IL |
| Lenz Weber-Tronic | @phryneas | Apollo GraphQL | Wuerzburg, DE |
| Pablo Saez | @PabloSzx | Independent | New York, US |
| Denis Badurina | @enisdenjo | The Guild | Sarajevo, BA |
| Jayden Seric | @jaydenseric | Independent | Melbourne, AU |
Agenda
- Agree to Membership Agreement, Participation & Contribution Guidelines and Code of Conduct (1m, Host)
- Specification Membership Agreement
- Participation Guidelines
- Contribution Guide
- Code of Conduct
- Meetings are published to YouTube and we may use LLM/AI summary tools
- Introduction of attendees (5m, Host)
- Determine volunteers for note taking (1m, Host)
- Review agenda (2m, Host)
- Check for ready for review agenda items (5m, Host)
- Discuss optimal JavaScript module design (15m, Jayden).
- Current state:
- GraphQL.js publishes suboptimal index/"barrel" modules (modules with multiple exports), vs deep importable modules with a single export. E.g:
- Index module: https://unpkg.com/[email protected]/index.js
- Library module: https://app.unpkg.com/[email protected]/files/type/scalars.mjs
- GraphQL.js publishes suboptimal index/"barrel" modules (modules with multiple exports), vs deep importable modules with a single export. E.g:
- Proposal:
- Move each export (e.g. each scalar) into its own deep-importable single-export module.
- Remove index/"barrel" modules.
- Remove the package main entry-point. This will ensure the ecosystem only imports from GraphQL.js via optimal deep imports.
- Current state:
Notes
GraphQL WG Notes - June 2025
Watch the replays: GraphQL.js Working Group Meetings on YouTube
- Discuss optimal JavaScript module design (15m, Jayden).
- Jayden: full article with “blow-by-blow” is at https://jaydenseric.com/blog/optimal-javascript-module-design
- Jayden: It is ok to use a single named export, but it’s slightly more optimal to use a default for minification purposes.
- Jayden: current barrel file use means everything is included when anything is included
- Denis: might you not get more waterfalls with this approach, especially if we are very strict with one export per file, meaning hundreds of files.
- Jayden: I have experience doing this with multiple production systems with good time savings
- Jayden: this is an opportunity now that we are moving to esm to make it actually work for those not using bundlers
- Benjie: what about discoverability, in terms of finding the functions available?
- Jayden: you can get the same discoverability not in the import { ... } but in the from ‘/graphql/....’
- Yaacov: would you want to show us what this would look like in a PR?
- Jayden: work on this would require kind of locking the code base, because all other PRs would have to rebase, and this PR would be incredibly difficult to merge would
- Denis: I found a package which actually shows the waterfall, could you comment on whether 140 files over the browser would be a problem, because that’s what I am envisioning, although I cannot be sure whether it would be the same after the refactor.
- Jayden: demos his web site showing indeed many files, but all the code is used (except react-dom, and things are snappy.
- Benjie: from chat: jscodeshift may help people upgrade
- Jayden: action item => create an issue
Zoom summary
Meeting Summary for GraphQL.js Working Group meeting
NOTICE: This summary was auto-generated by Zoom's "AI". AI-generated content may be inaccurate or misleading. Always check for accuracy. If in doubt, please consult the meeting recording at https://youtube.com/@GraphQLFoundation/playlists
- Meeting start: 2025-06-25T16:55:54Z
- Meeting end: 2025-06-25T18:22:03Z
- Summary start: 2025-06-25T16:58:29Z
- Summary end: 2025-06-25T18:21:20Z
The GraphQL.js working group meeting focused on discussing JavaScript module design and the transition to ESM-only support, with Jayden presenting proposals for restructuring the GraphQL.js library to improve performance and reduce unnecessary code loading. The team explored various approaches to handling module imports, including deep imports and conditional exports, while considering browser compatibility and developer experience. The conversation ended with plans to create a tracking issue for proposed changes and coordinate further via GitHub, with an emphasis on gathering maintainers' buy-in and addressing potential migration challenges.
Next Steps
- Jayden to raise an issue on GitHub articulating the proposals for optimal module design and Esm migration, including next steps and potential challenges with existing PRs.
- Yaacov to integrate feedback from Lens on development and production checks, create a PR, and ping Jayden for review.
- Maintainers to assess and categorize existing PRs to determine which can be closed or need to be kept open.
- Yaacov to create a discussion or issue to gather buy-in from all maintainers, especially Yovie, regarding the proposed changes.
- Jayden to assist with pure ESM topics and implementation moving forward.
Summary
GraphQL.js Working Group Meeting
The GraphQL.js working group meeting began with Yaacov explaining that he had removed a specific proposal about package exports from the agenda due to feedback received offline from Lens. Jayden presented his topic on optimal JavaScript module design, which was motivated by its connection to Yaacov's agenda item about ESM-only module support and CGS fallbacks. The meeting included introductions from all participants, including Benjie, Dennis, and Jayden, and established that notes would be taken both manually and by AI to document the discussion.
JavaScript Module Structure Optimization
Jayden discussed the optimal structure for JavaScript modules, advocating for single exports per module and the avoidance of barrel files and index modules. He explained that this approach can improve minification and reduce unnecessary file caching, particularly in Deno backend environments. Jayden suggested restructuring the GraphQL.js library by extracting publicly exported entities into separate modules, which would allow for more efficient imports and reduce the need to download and cache large amounts of unnecessary code.
ESM Transition in GraphQL.js
Jayden discussed the challenges of managing ESM and CommonJS versions in GraphQL.js, emphasizing the need for a pure ESM approach to improve performance and reduce friction. He proposed removing the main entry point and deep imports to force correct usage, which would require explicit package.json exports. Denis raised concerns about the potential for a large number of files and a "waterfall effect" when splitting exports, but Jayden explained that deep imports would be more performant by avoiding unnecessary loading steps.
Single File Export Benefits and Drawbacks
Denis and Jayden discussed the benefits and drawbacks of having one file per export in a project. Jayden shared his experience with enforcing this practice through an ESLint plugin and its positive impact on project navigation and maintenance. Denis raised concerns about the potential for increased network activity and file size with this approach. They also touched on the possibility of automating the process to some extent. The discussion concluded with an overview of a proposed conditional exports scheme for handling different import scenarios.
GraphQL Import Pattern Discussion
Jayden and Denis discussed the importance of maintaining a main entry point in the GraphQL package for browser compatibility and developer experience, while Benjie highlighted the trade-offs of deep imports, including discoverability and tree-style browsing. Jayden emphasized the need for a consistent import pattern to ensure reliability across the ecosystem, while Benjie acknowledged the pain points of unnecessary imports but suggested that deep imports could offer benefits like auto-completion and browsing. The group agreed on the importance of optimizing GraphQL.js for ecosystem reliability, but no final decision was made on the specific import approach.
ES Modules Transition Discussion
The team discussed the challenges and potential solutions for transitioning to ES modules in GraphQL.js. Jayden and Yaacov explored the idea of an intermediate major version release that maintains the current API while restructuring the codebase internally, but Jayden expressed concerns about the logistical challenges of such a change, including potential conflicts with ongoing PRs and the need for buy-in from the community. Yaacov suggested creating a PR to demonstrate the proposed changes, but Jayden emphasized the importance of having a clear plan and agreement on the ideal directory structure before proceeding. The team acknowledged the technical ability to manage the transition with aliasing and mapping, but Jayden advised against creating a discrepancy between the package exports and physical directory structure.
GraphQL Import Restructuring Discussion
Jayden and Denis discussed the implications of restructuring GraphQL imports in a Node.js project, focusing on browser performance and code organization. Denis presented data showing that importing all necessary files could result in a large number of requests, but Jayden argued that modern browsers handle multiple parallel requests efficiently and that unused code is a common issue across web applications. They agreed that while removing index files might improve tree shaking, it could also require significant migration efforts and might not be backward compatible, particularly for peer dependencies.
GraphQL Modernization and Migration Plans
The team discussed modernizing the GraphQL stack, with Jayden presenting proposals for handling ESM and module design changes. Yaacov suggested creating a tracking issue to document the proposed changes and gather buy-in from maintainers, while also addressing the need to assess and potentially close old pull requests. Jayden agreed to raise a high-quality issue within the next few days, separating proposals by controversy scale and outlining next steps, including a potential lockdown on new PRs during the module migration. Yaacov expressed gratitude for Jayden's willingness to contribute to both ESM and POE topics, and the conversation ended with plans to coordinate further via GitHub.