apollo
apollo copied to clipboard
Using createFragmentRegistry throws error: makeCacheKey is not defined
Environment
- Operating System: Darwin
- Node Version: v22.5.1
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: devtools, modules, apollo
- Runtime Modules: @nuxtjs/[email protected]
- Build Modules: -
Describe the bug
Creating a fragment registry using inMemoryCacheOptions throws an error: makeCacheKey is not defined.
If I remove the inMemoryCacheOptions configuration and include the fragment directly in the query, it works as expected.
Expected behaviour
Passing createFragmentRegistry to inMemoryCacheOptions should allow the use of fragments within GraphQL queries.
Reproduction
Here is a repo with a minimal reproduction.
Additional context
No response
Logs
No response