class Author::Collection

Overview

Addition of the method for eager loading and N+1 avoidance.

Defined in:

models/author.cr

Instance Method Summary

Instance Method Detail

def with_posts(fetch_columns = false, &block : Post::Collection -> ) : self #

Eager load the has many relation posts. Use it to avoid N+1 queries.


def with_posts(fetch_columns = false) #