Recently, my fridge was not working properly; everything inside was almost at room temperature. I found that a huge chunk of ice had formed in the freezer, and it was pushing the door open. After removing the ice, I can drink cold milk as usual. Good…
I learned which situation causes the N+1 problem while implementing a GraphQL server with gqlgen. Here are the key points. Splitting resolvers To avoid over-fetching from the DB, we can set resolver: