chapter seven
Now that we have a GraphQL service with a multimodel schema, we can look at one of GraphQL’s most famous problems, the N+1 queries problem. We ended the previous chapter with a GraphQL query that fetches data from three database tables.
Listing 7.1 The N+1 query example
{
taskMainList {
// ·-·-·
author {
// ·-·-·
}
approachList {
// ·-·-·
author {
// ·-·-·
}
}
}
}