-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests for Array inputs with transformation
Signed-off-by:Phillip Kruger <phillip.kruger@gmail.com>
- Loading branch information
1 parent
bcb8edc
commit b9ae37e
Showing
11 changed files
with
106 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
tck/src/main/resources/tests/createNewHerosArray/cleanup.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mutation removeHero { | ||
removeHero(hero: "Captain America") { | ||
name | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
tck/src/main/resources/tests/createNewHerosArray/input.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
mutation createNewHeroesWithArray { | ||
createNewHeroesWithArray(heroes:[{ | ||
name: "Captain America" | ||
realName: "Steven Rogers" | ||
superPowers: ["Super strength", "Vibranium Shield"] | ||
primaryLocation: "New York, NY" | ||
teamAffiliations: [{name: "Avengers"}] | ||
idNumber: "6578,4312" | ||
}]) { | ||
name | ||
primaryLocation | ||
superPowers | ||
realName | ||
idNumber | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
tck/src/main/resources/tests/createNewHerosArray/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"data": { | ||
"createNewHeroesWithArray": [ | ||
{ | ||
"name": "Captain America", | ||
"primaryLocation": "New York, NY", | ||
"superPowers": [ | ||
"Super strength", | ||
"Vibranium Shield" | ||
], | ||
"realName": "Steven Rogers", | ||
"idNumber": "6578,4312" | ||
} | ||
] | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
tck/src/main/resources/tests/createNewHerosArray/test.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ignore=false | ||
priority=200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
mutation logLocationForHero { | ||
logLocationWithArray(name:"Starlord", coordinates:[-25.926804, 28.203392]) { | ||
name | ||
lastKnownCoordinates | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"data": { | ||
"logLocationWithArray": { | ||
"name": "Starlord", | ||
"lastKnownCoordinates": [-25.926804, 28.203392] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ignore=false | ||
priority=200 |
6 changes: 6 additions & 0 deletions
6
tck/src/main/resources/tests/locationLongLatArray/input.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
mutation logLocationForHero { | ||
logLocationLongLatWithArray(name:"Starlord", coordinates:["-25.926804 longlat" , "28.203392 longlat"]) { | ||
name | ||
lastKnownCoordinates | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
tck/src/main/resources/tests/locationLongLatArray/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"data": { | ||
"logLocationLongLatWithArray": { | ||
"name": "Starlord", | ||
"lastKnownCoordinates": [-25.926804, 28.203392] | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
tck/src/main/resources/tests/locationLongLatArray/test.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ignore=false | ||
priority=200 |