Skip to content

Commit eb7385e

Browse files
author
John Rix
committed
Merge branch 'master' of git://github.com/vuex-orm/plugin-graphql
2 parents e015779 + 490532e commit eb7385e

2 files changed

Lines changed: 17 additions & 19 deletions

File tree

docs/guide/connection-mode.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,22 @@ In rare cases the automatic detection might fail or report the wrong mode. In th
2222
manually set the connection mode via a custom adapter. The modes and the resulting
2323
queries are explained in the next sections.
2424

25+
## Mode 1: `plain`
2526

26-
## Mode 1: `nodes`
27+
The third mode is the less preferred one due to the lack of meta information. In this case we just plain pass the field
28+
queries:
29+
30+
```
31+
query Users {
32+
users {
33+
id
34+
email
35+
name
36+
}
37+
}
38+
```
39+
40+
## Mode 2: `nodes`
2741

2842
This is the preferred mode and used for the example queries in this documentation. Setting the connection mode to
2943
`nodes` (or letting the plugin auto detect this mode) will lead to the following query when calling `User.fetch()`:
@@ -41,7 +55,7 @@ query Users {
4155
```
4256

4357

44-
## Mode 2: `edges`
58+
## Mode 3: `edges`
4559

4660
This mode uses a `edges` not to query the edge an then query the `node` within that edge:
4761

@@ -58,19 +72,3 @@ query Users {
5872
}
5973
}
6074
```
61-
62-
63-
## Mode 3: `plain`
64-
65-
The third mode is the less preferred one due to the lack of meta information. In this case we just plain pass the field
66-
queries:
67-
68-
```
69-
query Users {
70-
users {
71-
id
72-
email
73-
name
74-
}
75-
}
76-
```

docs/guide/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ We recommend to activate the debug mode in development env automatically via:
4949
## Client
5050

5151
You can inject your own instance of the Apollo Client using `option.apolloClient`. This is useful if
52-
the app requires a more complex configuration, such as integration wiht AWS AppSync. When `apolloClient`
52+
the app requires a more complex configuration, such as integration with AWS AppSync. When `apolloClient`
5353
is used, `plugin-graphql` ignores any other options to configure Apollo client.
5454

5555
Here is an example configuration for AWS AppSync:

0 commit comments

Comments
 (0)