Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 425 Bytes

File metadata and controls

24 lines (17 loc) · 425 Bytes
title update()
description Update the record matching the query chain.

update()

Usage

import { useRepo } from 'pinia-orm'
import User from './models/User'

const userRepo = useRepo(User)

// update all records by query with the given properties
userRepo.where('name', 'Jane Doe').update({ age: 50 })

Typescript Declarations

function update(record: Element): Collection<M>