|
18 | 18 | }
|
19 | 19 | flavor
|
20 | 20 | }
|
| 21 | + allDairy { |
| 22 | + ... on Cheese { |
| 23 | + flavor |
| 24 | + } |
| 25 | + ... on Milk { |
| 26 | + source |
| 27 | + executionError |
| 28 | + } |
| 29 | + } |
| 30 | + dairy { |
| 31 | + milks { |
| 32 | + source |
| 33 | + executionError |
| 34 | + allDairy { |
| 35 | + __typename |
| 36 | + ... on Milk { |
| 37 | + origin |
| 38 | + executionError |
| 39 | + } |
| 40 | + } |
| 41 | + } |
| 42 | + } |
21 | 43 | executionError
|
22 | 44 | }
|
23 | 45 |
|
|
38 | 60 | },
|
39 | 61 | "flavor" => "Brie",
|
40 | 62 | },
|
| 63 | + "allDairy" => [ |
| 64 | + { "flavor" => "Brie" }, |
| 65 | + { "flavor" => "Gouda" }, |
| 66 | + { "flavor" => "Manchego" }, |
| 67 | + { "source" => "COW", "executionError" => nil } |
| 68 | + ], |
| 69 | + "dairy" => { |
| 70 | + "milks" => [ |
| 71 | + { |
| 72 | + "source" => "COW", |
| 73 | + "executionError" => nil, |
| 74 | + "allDairy" => [ |
| 75 | + { "__typename" => "Cheese" }, |
| 76 | + { "__typename" => "Cheese" }, |
| 77 | + { "__typename" => "Cheese" }, |
| 78 | + { "__typename" => "Milk", "origin" => "Antiquity", "executionError" => nil } |
| 79 | + ] |
| 80 | + } |
| 81 | + ] |
| 82 | + }, |
41 | 83 | "executionError" => nil,
|
42 | 84 | },
|
43 | 85 | "errors"=>[
|
44 | 86 | {
|
45 | 87 | "message"=>"No cheeses are made from Yak milk!",
|
46 |
| - "locations"=>[{"line"=>5, "column"=>9}] |
| 88 | + "locations"=>[{"line"=>5, "column"=>9}], |
| 89 | + "path"=>["cheese", "error1"] |
47 | 90 | },
|
48 | 91 | {
|
49 | 92 | "message"=>"No cheeses are made from Yak milk!",
|
50 |
| - "locations"=>[{"line"=>8, "column"=>9}] |
| 93 | + "locations"=>[{"line"=>8, "column"=>9}], |
| 94 | + "path"=>["cheese", "error2"] |
| 95 | + }, |
| 96 | + { |
| 97 | + "message"=>"There was an execution error", |
| 98 | + "locations"=>[{"line"=>22, "column"=>11}], |
| 99 | + "path"=>["allDairy", 3, "executionError"] |
| 100 | + }, |
| 101 | + { |
| 102 | + "message"=>"There was an execution error", |
| 103 | + "locations"=>[{"line"=>28, "column"=>11}], |
| 104 | + "path"=>["dairy", "milks", 0, "executionError"] |
| 105 | + }, |
| 106 | + { |
| 107 | + "message"=>"There was an execution error", |
| 108 | + "locations"=>[{"line"=>33, "column"=>15}], |
| 109 | + "path"=>["dairy", "milks", 0, "allDairy", 3, "executionError"] |
51 | 110 | },
|
52 | 111 | {
|
53 | 112 | "message"=>"There was an execution error",
|
54 |
| - "locations"=>[{"line"=>16, "column"=>7}] |
| 113 | + "locations"=>[{"line"=>38, "column"=>7}], |
| 114 | + "path"=>["executionError"] |
55 | 115 | },
|
56 | 116 | ]
|
57 | 117 | }
|
|
0 commit comments