load()
Usage
import { useRepo } from 'pinia-orm'import User from './models/User'const userRepo = useRepo(User)const users = userRepo.all()// eager load "coomments" relation for all usersuserRepo.with('comments').load(users) // eager load "coomments" relation with closure for all usersuserRepo.with('comments', (query) => { query.where('active', true)}).load(users)
Typescript Declarations
function load(models: Collection<M>): void
Table of Contents