Added an eager-load option to the repository API.