Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using createFragmentRegistry throws error: makeCacheKey is not defined #630

Open
benfeather opened this issue Jul 31, 2024 · 0 comments
Open
Labels

Comments

@benfeather
Copy link

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.

CleanShot 2024-08-01 at 11 01 09@2x

CleanShot 2024-08-01 at 11 01 25@2x

CleanShot 2024-08-01 at 10 22 49@2x

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

@benfeather benfeather added the bug label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant