Re:How to GraphQL with Ruby, Rails, Active Record, and No N+1
by dmitrytsepelev on Tuesday November 10, 2020 @01:53AM
(#25043403)
In this case the row size can become huge. Also, how to make sure it's consistent? (I mean foreign keys/unique indexes/etc)
If you are eagerloading multiple joins relationships, normally that would create a result set of n x m x k x ... rows. With json_agg each relation could be single column in a row etc.