Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/1.guide/1.getting-started/4.typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This is pretty new if you are a vuex-orm user. If you are a vuex-orm-next user t

````ts
import { Model } from 'pinia-orm'
import { Attr, Cast, Uid } form 'pinia-orm/dist/decorators'
import { Attr, Cast, Uid } from 'pinia-orm/dist/decorators'
import { ArrayCast } from 'pinia-orm/dist/casts'

class User extends Model {
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.guide/4.repository/1.getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default {
methods: {
someMethod () {
this.userRepo // <- the user repository.
this.postRepo // <- the user repository.
this.postRepo // <- the post repository.
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/content/2.api/3.query/load.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const userRepo = useRepo(User)

const users = userRepo.all()

// eager load "coomments" relation for all users
// eager load "comments" relation for all users
userRepo.with('comments').load(users)
// eager load "coomments" relation with closure for all users
// eager load "comments" relation with closure for all users
userRepo.with('comments', (query) => {
query.where('active', true)
}).load(users)
Expand Down