I want to order a table by a nested attribute. I tried something like this:
query {
posts (orderBy: { author: { name : desc } } ) {
content
author {
name
}
}
}
But the result was that author is not available there. I checked the generated oderby-input-type and there were only the scalar attributes of the post model available, the related models are missing.
Is it possible to extend the generated input types ...OrderByInput to include the related models?
I want to order a table by a nested attribute. I tried something like this:
But the result was that author is not available there. I checked the generated oderby-input-type and there were only the scalar attributes of the post model available, the related models are missing.
Is it possible to extend the generated input types ...OrderByInput to include the related models?