-
I want to sort the products retrieved from the API. For example by For instance, a query from the Saleor API: {
products(
first: 5
channel: "default-channel"
sortBy: { field: NAME, direction: ASC }
) {
edges {
node {
id
name
description
}
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
adrien2p
Nov 22, 2022
Replies: 1 comment 6 replies
-
You can do that in most endpoint using the order query param. If it is not available then we can add it pretty easily normally |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
srindom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do that in most endpoint using the order query param. If it is not available then we can add it pretty easily normally