first()

Execute the query and get the first result.


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>