FROM CACHE - en_header

How to sort products by price in graphql admin api

vigneshR
Tourist
7 0 1

i want to sort products by price in graphql api .

{
products(first: 1,sortKey:PRICE,query: "sku:'.$ar.' status:active") {
edges {
cursor
node {
id
title
handle
metafields(first: 10) {
edges {
node {
namespace
key
value
}
}
}
images(first:1) {
edges {
cursor
node {
originalSrc
id
}
}
}
}
}
}
}
Replies 0 (0)