I have a model like this
class Foo has_many :bars end and a query like this
query foos( $offset: Int $sort_by: String $should_paginate: Boolean ) { foos( offset: $offset sort_by: $sort_by should_paginate: $should_paginate ) { id name bars { When I fetch this query, I get one select * from "foos" for each bar that's in the collection.
How can I have this all be smarter and do fewer SQL queries?