sort many_to_many
I thought I had asked this question before, but can't seem to find it...
It seems like a very common use case, but not sure how to go about this.
Is it possible to sort a many_to_many relationship based on a field in the join table.
ie. if I have a Playlist:
and an Item:
And a PlaylistEntry:
And I want to simply load this in graphql by just adding the items:
I know that in graphql not all values that are not needed in the read are selected, but apart from graphQL is there a way to get this sorting happening.
Thanks all!
It seems like a very common use case, but not sure how to go about this.
Is it possible to sort a many_to_many relationship based on a field in the join table.
ie. if I have a Playlist:
and an Item:
And a PlaylistEntry:
And I want to simply load this in graphql by just adding the items:
I know that in graphql not all values that are not needed in the read are selected, but apart from graphQL is there a way to get this sorting happening.
Thanks all!
