apollographql / router

A configurable, high-performance routing runtime for Apollo Federation 🚀
https://www.apollographql.com/docs/router/
Other
813 stars 271 forks source link

[JSONSelection] Add `->mapValues` method to `future::` namespace #6189

Open benjamn opened 3 weeks ago

benjamn commented 3 weeks ago

PR #6185 removed support for the following syntax for preserving dynamic keys of dictionary objects while mapping their values:

booksByISBN: books { * { title author }}

As suggested in the description of PR #6185, this pattern can be replaced with a ->mapValues method call:

booksByISBN: books->mapValues(@ { title author })

This PR tentatively implements that ->mapValues method, filing it away in the future:: namespace to indicate it hasn't been shipped yet.

svc-apollo-docs commented 3 weeks ago

✅ Docs Preview Ready

No new or changed pages found.

router-perf[bot] commented 3 weeks ago

CI performance tests