Skip to content

How can params be used in sub trees of a query? #71

Description

@victorbadila

Suppose I have a gql query that looks like this:

"query category($id: Int!, $pageSize: Int!, $currentPage: Int!) {
  category(id: $id) {
    id
    description
    name
  }
  products(pageSize: $pageSize, currentPage: $currentPage) {
    items {
      id
      name
    }
  }
}
"

Is there any way I could write it using this library? I am able to do so for the individual category and product queries, but I wasn't able to do this for the full example, where params int he query are passed down in different trees.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions