mergeable_orders

Fetch mergeable orders matching the supplied arguments.

Arguments

ArgumentTypeRequiredDefaultDescription
analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

MergeableOrdersQueryResult

Query

query mergeable_orders(
  $analyze: Boolean
) {
  mergeable_orders(
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...MergeableOrderConnectionFragment
    }
  }
}

Variables

{
  "analyze": true
}

Response

{
  "data": {
    "mergeable_orders": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": [{id: "T3JkZXI6MTIzNA==", order_number: "SO-100045"}]
    }
  }
}