From a108e366360643fdb557bcbab717becb40fd2dbe Mon Sep 17 00:00:00 2001 From: Tim Meyerson Date: Thu, 20 May 2021 15:10:29 +0300 Subject: [PATCH 1/5] Fix typo perist -> persist asdfasdf -> Foo --- docs/guide/persist.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/persist.md b/docs/guide/persist.md index fcfafbc5..dfb4f06c 100644 --- a/docs/guide/persist.md +++ b/docs/guide/persist.md @@ -63,7 +63,7 @@ Like when pushing, all records which are returned replace the respective existin ## Additional variables -You can pass a object like this: `$perist({ captchaToken: 'asdfasdf' })`. All fields in the object will be passed as +You can pass a object like this: `$persist({ captchaToken: 'foo' })`. All fields in the object will be passed as variables to the mutation. From df42bc4cad3038f8b95bca26ee8dec12185a3d5a Mon Sep 17 00:00:00 2001 From: kyrsquir Date: Thu, 20 May 2021 15:23:12 +0300 Subject: [PATCH 2/5] Update push.md --- docs/guide/push.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/push.md b/docs/guide/push.md index 58259647..e74a6b45 100644 --- a/docs/guide/push.md +++ b/docs/guide/push.md @@ -57,7 +57,7 @@ Like when persisting, all records which are returned replace the respective exis ## Additional variables -You can pass a object like this: `$push({ captchaToken: 'asdfasdf' })`. All fields in the object will be passed as +You can pass a object like this: `$push({ captchaToken: 'foo' })`. All fields in the object will be passed as variables to the mutation. From 0779a5039aa029c0ae1e4875bbcbc6f69b9799fa Mon Sep 17 00:00:00 2001 From: kyrsquir Date: Thu, 20 May 2021 16:30:24 +0300 Subject: [PATCH 3/5] Update relationships.md --- docs/guide/relationships.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/relationships.md b/docs/guide/relationships.md index b07531f1..ca300af9 100644 --- a/docs/guide/relationships.md +++ b/docs/guide/relationships.md @@ -433,7 +433,7 @@ query Posts { See the [Many To Many Polymorphic Relations section](https://vuex-orm.github.io/vuex-orm/guide/relationships/defining-relationships.html#many-to-many-polymorphic-relations) in the Vuex-ORM documentation. ::: -Eager loading behaves the same as in a normal Many To Many: Nothing is eager loaded automatically. So we add a +Eager loading behaves the same as in a normal Many To Many: nothing is eager loaded automatically. So we add a `eagerLoad` field to make sure the tags are loaded automatically with the post or video. **Models:** From 44f2860924f8771985f7ce5b18aa366bdc4f25b0 Mon Sep 17 00:00:00 2001 From: kyrsquir Date: Thu, 20 May 2021 16:51:04 +0300 Subject: [PATCH 4/5] Update custom-queries.md --- docs/guide/custom-queries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/custom-queries.md b/docs/guide/custom-queries.md index 27d911f5..67e3d307 100644 --- a/docs/guide/custom-queries.md +++ b/docs/guide/custom-queries.md @@ -21,7 +21,7 @@ way. This might be changed in the future, when we find a better solution. ## Model related custom query You may sometimes want to send custom GraphQL query. We support this via the `query` action. However please notice that -the convenienceMethods here are named `customMutation` and `$customMutation` due to a name conflict with the `query()` +the convenienceMethods here are named `customQuery` and `$customQuery` due to a name conflict with the `query()` method Vuex-ORM. ```javascript From e30fb8c1d70ec093e956b2a42293e02b91385b0e Mon Sep 17 00:00:00 2001 From: kyrsquir Date: Thu, 20 May 2021 18:55:42 +0300 Subject: [PATCH 5/5] Update eager-loading.md --- docs/guide/eager-loading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/eager-loading.md b/docs/guide/eager-loading.md index 47407a8d..1595c85c 100644 --- a/docs/guide/eager-loading.md +++ b/docs/guide/eager-loading.md @@ -30,7 +30,7 @@ class User extends Model { ## Eager Saving Similar to the eager loading there is a "eager saving". When saving (via `$persist` or `$push`) a -record will automatically sends all `belongsTo` related records too to the server. +record will automatically send all `belongsTo` related records too to the server. All other related records have to be added to a static field in the model called `eagerSave` to have them eagerly saved with persist and push.