Sha256: aab148ce2fe8809488cc5bb56f75e16cc36cc72e08c8843a55f10cec86ec8eca
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
## GraphQL::Stitching::Executor An `Executor` accepts a [`Supergraph`](./supergraph.md), a [query plan hash](./planner.md), and optional request variables. It handles executing requests and merging results collected from across graph locations. ```ruby query = <<~GRAPHQL query MyQuery($id: ID!) { product(id:$id) { title brands { name } } } GRAPHQL variables = { "id" => "123" } document = GraphQL::Stitching::Document.new(query, operation_name: "MyQuery") plan = GraphQL::Stitching::Planner.new( supergraph: supergraph, document: document, ).perform raw_result = GraphQL::Stitching::Executor.new( supergraph: supergraph, plan: plan.to_h, variables: variables, ).perform ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-stitching-0.0.1 | docs/executor.md |