enisdenjo / graphql-composite

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

Computed variables #13

Open enisdenjo opened 6 months ago

enisdenjo commented 6 months ago

https://github.com/ardatan/graphql-mesh/blob/20a5abc3db97f545b446719365ae5d432125f98d/packages/fusion/execution/tests/cases/type-merging-multiple-keys/__snapshots__/type-merging-multiple-keys.test.ts.snap

input ProductKey @source(subgraph: "vendors", name: "ProductKey") {
  id: ID @source(subgraph: "vendors", name: "id", type: "ID")
  upc: ID @source(subgraph: "vendors", name: "upc", type: "ID")
}
kamilkisiela commented 5 months ago

Let's aim to support:

query ($representations:[_Any!]!) {
  _entities(representations:$representations) {
    ... on User {
      ...__export
    }
  }
}