Added filter to sort constants by name or position
August 9th, 2021
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
    }
}
X
Crafted by