Skip to content

Graphql N+1 problem

Graphql N+1 problem

Example:

query {                      
  authors {      # fetches authors (1 query)
    name       
    address {    # fetches address for each author (N queries for N authors)
      country
    }
  }
}