Many to Many relationship - GraphQl query

Hi!
How should I model a “many-to-many” relationship?
Ex: Authors write many Articles and Articles have many Authors.
How could I make the following graphql queries:
{
allAuthors {
id
articles {
id
}
}
}

or

{
allArticles {
id
authors {
id
}
}
}

tks!!

hello @fka.andd and welcome to Community!

Currently we don’t support many-to-many relationships. There’s a feature request open for that: Expose inverse relations in Dashboard and GraphQL API if I’ve understood correctly what you are looking for.

If not feel free to reply with more details!

tks @mat_jack1! I’ve just upvoted this feature request.

1 Like