Skip to content

Commit

Permalink
docs: Couple of typos (#1183)
Browse files Browse the repository at this point in the history
* [docs] typo: "from" vs "from"

 Fix typo "form" vs "from" in getting_started/typescript documtation

* [docs] typo: "user" to "post"

* [docs] typo: "cooments" vs "comments"
  • Loading branch information
mahmoudawadeen authored Aug 31, 2023
1 parent fab03c3 commit a2e7b9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit a2e7b9d

Please sign in to comment.