apollographql / federation-next

Moved to the Router repository
https://github.com/apollographql/router/tree/dev/apollo-federation
Other
19 stars 1 forks source link

use a map for headers #268

Closed lennyburdette closed 4 months ago

lennyburdette commented 4 months ago

We use a list of {name:, value?:, as?:} object because we can't use an object — header names aren't valid GraphQL object keys. But it really is a map, especially so we can easily merge the @connect headers into the @source headers, overriding by name. Also, the value field can be a list of values.