To query plans for a given product, you can use the plans
subquery inside a product
query.
{product(...) {plans(first:Int, after:String, orderBy:PlanOrderBy): PlanConnection}}
The parameters are the default parameters used for pagination, see Querying with Pagination for details.
So to fetch the first 10 plans for a given product, you could do this:
{product(label:"my-product") {plans(first:10) {edges {node {labelcost}}}}}
Which would result in something like:
{"data": {"product": {"plans": {"edges": [{"node": {"label": "my-free-plan","cost": 0}},{"node": {"label": "my-basic-plan","cost": 1000}},{"node": {"label": "my-platinum-plan","cost": 10000}}]}}}}
​