all()
The difference with the
get
is that this
method will not process any query chain. It'll always retrieve all models.Usage
import { useRepo } from 'pinia-orm'
import User from './models/User'
const userRepo = useRepo(User)
const users = userRepo.query().all() // User[] - all
const usersPreName = userRepo.where('prename', 'John').all() // User[] - still all User !
Typescript Declarations
function all(): Collection<M>
Table of Contents