You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/testing/schema_structure.md
+44-1Lines changed: 44 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,4 +25,47 @@ You can read about this approach in ["Tracking Schema Changes with GraphQL-Ruby"
25
25
26
26
## Automatically check for breaking changes
27
27
28
-
You can use [GraphQL::SchemaComparator](https://github.com/xuorig/graphql-schema_comparator) to check for breaking changes during development or CI.
28
+
You can use [GraphQL::SchemaComparator](https://github.com/xuorig/graphql-schema_comparator) to check for breaking changes during development or CI. If you maintain a dump of queries that typically run against your server, you may also utilize `GraphQL::StaticValidation` to validate these queries directly. A Rake task such as the one below can be used to identify changes that are incompatible with existing queries.
29
+
30
+
```ruby
31
+
namespace :graphqldo
32
+
namespace :queriesdo
33
+
desc 'Validates GraphQL queries against the current schema'
0 commit comments