Change8

release-1737369543378

📦 graphql-yogaView on GitHub →
1 features🐛 1 fixes🔧 2 symbols

Summary

This release updates the peer dependency to @nestjs/graphql v13, adds context‑aware introspection disabling, and fixes JWT context ordering.

Migration Steps

  1. Update the peer dependency `@nestjs/graphql` to version ^13.0.0.
  2. Review the NestJS GraphQL v13 migration guide for any breaking changes that may affect your schema or resolvers.
  3. If you were using `useDisableIntrospection` with a single parameter, modify the callback to accept `(req, ctx)` and use `ctx` to decide whether introspection should be disabled.

✨ New Features

  • Expose the server context as the second parameter in the `useDisableIntrospection` plugin, allowing introspection to be disabled based on the request context.

🐛 Bug Fixes

  • Ensure the JWT context is added before any GraphQL execution hooks when the plugin is used via Yoga, fixing missing context issues.

🔧 Affected Symbols

@nestjs/graphqluseDisableIntrospection