Graphql query design – Stack Overflow
I have an application that have 2 pages and 3 entities(Post,Author,Genre). Page 1 shows Posts and Authors and Page 2 shows Authors and Genres. My question is should I create 2 queries one for each page or should I create 3 queries one for each entity. Or should there be a single query that based on some input parameter gives 2 results one for each page.
I wanted to know if there are any guidelines for designing queries in graphql ? are queries designed per page that is one query per page or are they defined per entity.
Read more here: Source link
