Usage


There is only one little difference between vuex-orm and pinia-orm-next usage. You need to use useRepo

import User from './models/User'import { useRepo } from 'pinia-orm'const userRepo = useRepo(User)// Getting all users with their todos as relationconst users = userRepo.with('todos').get()