enisdenjo / graphql-composite

Spec agnostic GraphQL composite schema planner, executor and explainer.
MIT License
7 stars 0 forks source link

Resolve multiple additional fields #43

Closed enisdenjo closed 5 months ago

enisdenjo commented 5 months ago

A query like:

{
  product {
    name
    category
    price
  }
}

where name is on subgraph A, category on B and price on C.

https://github.com/enisdenjo/graphql-composite/blob/4f22d7e21f3104a873e1de7b140d566e8b7ff99b/src/gather.ts#L636-L637

https://github.com/enisdenjo/graphql-composite/blob/4f22d7e21f3104a873e1de7b140d566e8b7ff99b/src/gather.ts#L746-L753