GraphQL Inspector outputs a list of changes between two GraphQL schemas. Every change is precisely explained and marked as breaking, non-breaking or dangerous. It helps you validate documents and fragments against a schema and even find similar or duplicated types.
GraphQL Modules comes with a built-in support for GraphQL Inspector.
To get started, add
@graphql-inspector/cli to your app:
schema.ts to expose the schema of your GraphQL Modules application.
GraphQL Modules won't load other things such as injectors, resolvers and providers when you just try to get type definitions from your top module, because GraphQL Modules loads every part of module lazily.
src/schema.tsto expose your type definitions to GraphQL Inspector without any business logic.
Then, you can run:
See also the documentation of GraphQL Inspector to learn more.