GraphQL-Ruby Newsletter logo

GraphQL-Ruby Newsletter

Subscribe
Archives
February 14, 2021

GraphQL-Ruby 1.12 Update

Hi everyone,

You'll find some fresh GraphQL-Ruby releases on the shelves, and I thought I'd let you know what's new:

GraphQL-Ruby 1.12 has a handful of significant changes:
  • GraphQL::Dataloader, a Fiber-based plugin for batch-loading data. To get started, check out the docs or read a quick description of how it works. (I'm excited to get this working with Ruby 3's Fiber Scheduler API!)
  • Rails-style validations for arguments, new system for programmatically checking inputs at the GraphQL level.
  • Built-in support for schema definition directives. This is a great way to add custom behaviors to your schema in a way that shows up in SDL print-outs.
Besides that, 1.12 has a lot of deprecations of things that will be removed in GraphQL-Ruby 2.0. If you run into trouble while addressing those, please open an issue! Of course, you can find all the details about these new features, as well as other fixes and improvements, in the changelog.

GraphQL-Pro has gotten some improvements since my last newsletter, too:
  • Encrypted payloads for Ably subscriptions
  • Compressed payloads for Pusher subscriptions
  • Improved query generation for stable relation connections (avoiding OR ... IS NULL when possible, for better index utilization)
  • Backend performance improvements for subscriptions and persisted operations
Other improvements and fixes are described in the graphql-pro changelog.

graphql-ruby-client, the NPM package that integrates with GraphQL-Ruby, received updates to support the features described above. Besides that, v1.9.0 changes the exported module structure to support smaller bundle sizes (each file can be required or imported individually -- this used to work, but I think it broke in v1.7.0). You can find all the details in the graphql-ruby-client changelog.

With 1.12 out the door, I'm plotting a course for 1.13 -- the last 1.x release. If you have suggestions for that version, please share them on the tracking issue.

Happy new year (and 春节快乐!) to you and yours,

Robert




 
Don't miss what's next. Subscribe to GraphQL-Ruby Newsletter:
Docs GitHub
Powered by Buttondown, the easiest way to start and grow your newsletter.