You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the proper way to query graph relations with GraphQL?
So when having a relation like Company->products->Product to query the company and get its products simultaneously? Something along then line like this
{
company {
nameproducts {
name
}
}
}
which to my understanding only works if I have a field of array<record<product> in the company table.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What is the proper way to query graph relations with GraphQL?
So when having a relation like
Company->products->Product
to query the company and get its products simultaneously? Something along then line like thiswhich to my understanding only works if I have a field of
array<record<product>
in the company table.Beta Was this translation helpful? Give feedback.
All reactions