With nestjs-query we can filter by nested relations:
{
todoItems(
filter: {nested: {completed: {is: true}}},
sorting: {field: "title", direction: "ASC"},
){
pageInfo{
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges{
node{
id
title
completed
created
updated
}
cursor
}
}
}
Can we do something like that with sorting?
Option lookahead is turned on. I use FilterableRelation. TypeORM.