New Connectors Preview: URL and Batching Enhancements!

We have some fresh enhancements to Connectors now in preview! These primarily build on the “batching” feature for solving N+1 issues—check out Lenny’s post for much more detail on that!

These additions are available starting with GraphOS Router 2.2.0-rc.0 and composition 2.11.0-preview.1.

Highlights

  1. Expressions in your @connect URLs are available in more places now
  2. New path and queryParams values can be added to both @source and @connect for more dynamic URLs. The queryParams feature allows you to create parameters like ?id=1&id=2&id=3—super useful for batching!
  3. A new batch.maxSize setting in @connect lets you configure how many IDs to stick in a single $batch request.

There’s a new docs page describing all the current preview features and how to opt in to them. Check it out and let us know what you think!

2 Likes