From dc75f1f314a3633ab40a4742845904a2f6b37711 Mon Sep 17 00:00:00 2001 From: Gu3 Date: Thu, 11 Feb 2021 16:25:37 +0100 Subject: [PATCH] Update getting-started.md can't use get() on repo. Replace by all() --- docs/guide/relationships/getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/relationships/getting-started.md b/docs/guide/relationships/getting-started.md index fc39380..946e466 100644 --- a/docs/guide/relationships/getting-started.md +++ b/docs/guide/relationships/getting-started.md @@ -128,7 +128,7 @@ Sometimes you may need to load a relationship after the model has already been r const userRepo = store.$repo(User) // Retrieve models without relationships. -const users = userRepo.get() +const users = userRepo.all() // Load relationships on the fly. userRepo.with('posts').load(users) @@ -161,7 +161,7 @@ export default { }), users () { - const users = this.userRepo.get() + const users = this.userRepo.all() if (this.condition) { this.userRepo.with('posts').load(users)