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
@connect
URLs are available in more places now - New
path
andqueryParams
values can be added to both@source
and@connect
for more dynamic URLs. ThequeryParams
feature allows you to create parameters like?id=1&id=2&id=3
—super useful for batching! - 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!