groupBy()

Usage

import { useRepo } from 'pinia-orm'
import User from './models/User'
const userRepo = useRepo(User)
// Group users by name.
useRepo(User).groupBy('name').get()
// You may also pass multiple columns
useRepo(User).groupBy('name', 'age').get()

Typescript Declarations

function groupBy(...fields: GroupByFields): Query