by Kwastie · 10y ago · 0 comments
Does anyone know any best practices if you want to adopt this is in an existing application using a relation database (i.e. PostgreSQL). I don't know how to implement this without causing N+1 queries. (or Worse).
For example:
{ Post {
title,
content,
Author {
name,
avatar,
},
Comments(first:10) {
..
}
}
}A naive implementation would cause a lot of query, for each "edge" a query.