File tree Expand file tree Collapse file tree 1 file changed +4
-84
lines changed Expand file tree Collapse file tree 1 file changed +4
-84
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ type Query {
14
14
15
15
type User {
16
16
id : ID !
17
- name : String ! @modify ( name : " newName " )
17
+ name : String !
18
18
city : String
19
19
}
20
20
```
@@ -23,7 +23,7 @@ type User {
23
23
- request :
24
24
method : POST
25
25
url : http ://upstream /graphql
26
- textBody : '{ "query" : "query { user(id: 4) { city newName } }" }'
26
+ textBody : '{ "query" : "query { user(id: 4) { city name } }" }'
27
27
expectedHits : 1
28
28
response :
29
29
status : 200
@@ -32,98 +32,18 @@ type User {
32
32
user :
33
33
city : Globe
34
34
newName : Tailcall
35
- - request :
36
- method : POST
37
- url : http ://upstream /graphql
38
- textBody : '{ "query" : "query { user(id: 4) { city newName id } }" }'
39
- expectedHits : 1
40
- response :
41
- status : 200
42
- body :
43
- data :
44
- user :
45
- city : Globe
46
- newName : Tailcall
47
- id : 4
48
- - request :
49
- method : POST
50
- url : http ://upstream /graphql
51
- textBody : '{ "query" : "query { user(id: 4) { id newName city } }" }'
52
- expectedHits : 1
53
- response :
54
- status : 200
55
- body :
56
- data :
57
- user :
58
- id : 4
59
- newName : Tailcall
60
- city : Globe
61
35
```
62
36
63
37
``` yml @test
64
38
# Positive: basic 1
65
39
- method : POST
66
- url : http://localhost:8080 /graphql
40
+ url : http://localhost:8001 /graphql
67
41
body :
68
42
query : |
69
43
{
70
44
user(id: 4) {
71
- city
72
- newName
73
- }
74
- }
75
- # Positive: basic 2
76
- - method : POST
77
- url : http://localhost:8080/graphql
78
- body :
79
- query : |
80
- query {
81
- user(id: 4) {
82
- city
83
- newName
84
- id
85
- }
86
- }
87
- # Positive: basic 2 re ordered
88
- - method : POST
89
- url : http://localhost:8080/graphql
90
- body :
91
- query : |
92
- query {
93
- user(id: 4) {
94
- id
95
- newName
96
- city
97
- }
98
- }
99
- # Negative: without selection
100
- - method : POST
101
- url : http://localhost:8080/graphql
102
- body :
103
- query : |
104
- query {
105
- user(id: 4)
106
- # Negative: non existent fields
107
- - method : POST
108
- url : http://localhost:8080/graphql
109
- body :
110
- query : |
111
- query {
112
- user(id: 4) {
113
- id
114
- email_address
115
- }
116
-
117
- # Negative: missing input
118
- - method : POST
119
- url : http://localhost:8080/graphql
120
- body :
121
- query : |
122
- query {
123
- user {
124
- id
125
45
newName
126
- city
46
+ email
127
47
}
128
48
}
129
49
` ` `
You can’t perform that action at this time.
0 commit comments