File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,8 +22,22 @@ In rare cases the automatic detection might fail or report the wrong mode. In th
2222manually set the connection mode via a custom adapter. The modes and the resulting
2323queries 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
2842This 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
4660This 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- ```
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ We recommend to activate the debug mode in development env automatically via:
4949## Client
5050
5151You 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 `
5353is used, ` plugin-graphql ` ignores any other options to configure Apollo client.
5454
5555Here is an example configuration for AWS AppSync:
You can’t perform that action at this time.
0 commit comments