Validate GraphQL Schema - Continuous Integration & Delivery Pipeline
Explore our services and get in touch.
GraphQL Inspector since day one supported any kind of Continuous Integration and Delivery Pipeline. Nothing new here, except now it's more flexible and super lightweight.
The new version of GraphQL Inspector comes with a CLI crafter specifically for CI/CD.
We recently released a lot more interesting features. You can read about them in "New GraphQL Inspector and upcoming features" article.
The regular CLI comes with everything built-in. Loads Schema, Operations and Fragments from any source. It can extract GraphQL pieces from GraphQL files, code files (Vue, React, Angular and even Gatsby). The CLI supports GraphQL Endpoints, Git repositories and also files on GitHub.
Usually, in the CI/CD pipeline you want to compare a current schema with the one in production and detect breaking changes. Which means, you don't need all the other commands and features of Inspector CLI.
That's why in new GraphQL Inspector, everything is a plugin.
You want to compare schemas and detect breaking changes?
yarn global add @graphql-inspector/diff-command
Your production schema is accessible through an endpoint but newly proposed schema is defined
yarn global add @graphql-inspector/url-loader yarn global add @graphql-inspector/graphql-loader
Ok, everything is ready!
You can use the command below in your CI/CD pipeline:
graphql-inspector diff "https://api.com/graphql" "schema.graphql"
Here's how the result looks like. It shows a list of all changes and groups them by criticality level (Breaking, Dangerous or Safe).
To learn more about CLI for CI, please read "Continuous Integration" (opens in a new tab) chapter in our documentation.
We're working on Azure and Bitbucket integrations plus a monitoring feature. Talk to us to try it out.
We want to make Azure and Bitbucket a first-class citizens in GraphQL Inspector and give you the same experience as you get right now with GitHub.
Monitoring will enable you to analyze the traffic of your GraphQL APIs and provide details needed to improve performance. Collecting informations about the usage will let you safely remove deprecated pieces of GraphQL Schema.
If you're interested, please reach out to us!
We have big plans for Inspector, and you're very welcome to join us in that journey.
GraphQL Inspector is a tool created by developers, for developers and that's why we'd love to get your feedback and shape GraphQL Inspector together!
Oh... and it's Open Sourced (opens in a new tab)!
Join our newsletter
Want to hear from us when there's something new? Sign up and stay up to date!Recent issues of our newsletter
Brick - A New, Offline GraphQL Client Based on SQLite in Flutter
Brick is an open source package that provides offline support for GraphQL in Flutter
GraphQL-ESLint v3.14 - What's New?
The best GraphQL linter becomes even better! Check out what we added in the new version.
On-Demand Shared GraphQL Subscriptions with RxJS
Trigger on-demand expensive subscriptions and share results between multiple subscribers
GraphQXL - The Missing GraphQL Language Extension?
GraphQXL, a new language for building big and scalable GraphQL server-side schemas