first()

Usage

import { useRepo } from 'pinia-orm'
import User from './models/User'
const userRepo = useRepo(User)
console.log(userRepo.where('prename', 'John').first()) // User - with prename 'John'

Typescript Declarations

function first(): Item<M>