find()

Usage

import { useRepo } from 'pinia-orm'
import User from './models/User'
const userRepo = useRepo(User)
console.log(userRepo.find(1)) // User
console.log(userRepo.find([1,2,5])) // User[]

Typescript Declarations

function find(id: string | number): Item<M>
function find(ids: (string | number)[]): Collection<M>