In allConstants query, a new argument called filters has been added. It will contain the sort and sort_direction argument, both are of type enum.
sort will accept name and position as the value, the default value will be name.
sort_direction will accept asc and desc, the default value will be asc.
Sample query:
query {
allConstants(type_id: "skill", filters: {sort: position, sort_direction: desc}) {
id,
name,
position,
__typename
}
}