Solving the N+1 Problem in GraphQL
3 min readMay 4, 2021
The N+1 problem occurs when we use data returned from the database to fuel a list of further queries to the database.
Meaning, if you receive a list of results from a query, then for each result, you will make another query to the database.
In this case, the N
stands for the number of results returned from the database, and 1
stands for the initial query that was made.