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
- Expressions in your
@connectURLs are available in more places now - New
pathandqueryParamsvalues can be added to both@sourceand@connectfor more dynamic URLs. ThequeryParamsfeature allows you to create parameters like?id=1&id=2&id=3—super useful for batching! - A new
batch.maxSizesetting in@connectlets you configure how many IDs to stick in a single$batchrequest.
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!