enisdenjo / graphql-composite

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

Includes with deep paths #53

Closed enisdenjo closed 3 weeks ago

enisdenjo commented 2 months ago
{
  allProducts {
    name
    price
    reviews {
      rating
      user {
        name
      }
    }
  }
}

Where allProducts comes from the "products" subgraph, reviews come from "reviews" subgraph and its user.name comes from "users" subgraph.

This means that the "reviews" resolver needs to include the user.name under a deep path.