Skip to content

Commit 236a4eb

Browse files
authored
docs: rectify invalid relationship query (#48)
1 parent 125a525 commit 236a4eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/relationships/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Sometimes you may need to load a relationship after the model has already been r
128128
const userRepo = store.$repo(User)
129129

130130
// Retrieve models without relationships.
131-
const users = userRepo.get()
131+
const users = userRepo.all()
132132

133133
// Load relationships on the fly.
134134
userRepo.with('posts').load(users)
@@ -161,7 +161,7 @@ export default {
161161
}),
162162

163163
users () {
164-
const users = this.userRepo.get()
164+
const users = this.userRepo.all()
165165

166166
if (this.condition) {
167167
this.userRepo.with('posts').load(users)

0 commit comments

Comments
 (0)