Validate GraphQL Schema - Continuous Integration & Delivery Pipeline
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" 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!
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
Building Open Source GraphQL Security
Learn how open-source boosts GraphQL security and explore defensive and offensive tools, resources, and best practices to protect your GraphQL APIs.
Open Source composition and validation library for Apollo Federation
Introducing MIT licensed drop-in replacement for the Apollo Federation composition library.
GraphQLConf 2023 Recap
Explore the highlights of GraphQLConf 2023. Learn about the latest trends in GraphQL, from gateway solutions to composite schemas and innovative projects.
State of GraphQL Gateways in 2023
A six-month journey of researching, benchmarking, exploring and comparing GraphQL gateways and the Federation spec in 2023.