Sort by boolean field
Trying to sort by a field of boolean type throws error "Field \"filterHistories\" argument \"isFavorite_order\" requires type Boolean, found \"desc\"."
Example request:
query {
filterHistories(page: 1, itemsPerPage: 100, isFavorite_order: "desc") {
collection {
id
isFavorite
}
paginationInfo {
itemsPerPage
lastPage
totalCount
}
}
}
AC
-
ordering by boolean field is possible, ascending and descending