You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
getMyOrdersQuery
Portion of the GraphQL query used in the getOrders API endpoint
getMyOrdersQuery = "\n query getMyOrders(
$where: String,
$sort: [String!],
$limit: Int,
$offset: Int,
$locale: Locale!,
$acceptLanguage: [Locale!],
$currency: Currency!
) {\n me {\n orders(where: $where,
sort: $sort,
limit: $limit,
offset: $offset) {\n results {\n ...DefaultOrder\n }\n total\n offset\n count\n }\n }\n }\n"