-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅ Add test scenarios for rootDoc support in GraphQL mappings
- Loading branch information
Showing
4 changed files
with
268 additions
and
32 deletions.
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
117 changes: 104 additions & 13 deletions
117
core/src/test/java/karate/graphql/rootDoc/authors-and-posts.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 |
---|---|---|
@@ -1,13 +1,104 @@ | ||
{ | ||
"_id": "bar", | ||
"properties": { | ||
"group": "coolest" | ||
}, | ||
"sub": { | ||
"posts": [ | ||
{ "content": "ping", "visible": true }, | ||
{ "content": "pong", "visible": true }, | ||
{ "content": "invisible", "visible": false } | ||
] | ||
} | ||
} | ||
[ | ||
{ | ||
"_id": "foo", | ||
"properties": { | ||
"group": "coolest", | ||
"genre": "sci-fi" | ||
}, | ||
"posts": [ | ||
{ | ||
"content": "ping", | ||
"visible": true | ||
}, | ||
{ | ||
"content": "pong", | ||
"visible": true | ||
}, | ||
{ | ||
"content": "invisible", | ||
"visible": false | ||
} | ||
], | ||
"propertiesWrapperNoMapping": { | ||
"properties": { | ||
"group": "coolest", | ||
"genre": "sci-fi" | ||
} | ||
}, | ||
"propertiesWrapperPartialMapping": { | ||
"v": 2, | ||
"properties": { | ||
"group": "weird", | ||
"genre": "sci-fi" | ||
} | ||
} | ||
}, | ||
{ | ||
"_id": "bar", | ||
"properties": { | ||
"group": "coolest", | ||
"genre": "crime" | ||
}, | ||
"posts": [ | ||
{ | ||
"content": "ping bar", | ||
"visible": true | ||
}, | ||
{ | ||
"content": "pong bar", | ||
"visible": false | ||
}, | ||
{ | ||
"content": "invisible bar", | ||
"visible": false | ||
} | ||
], | ||
"propertiesWrapperNoMapping": { | ||
"properties": { | ||
"group": "coolest", | ||
"genre": "crime" | ||
} | ||
}, | ||
"propertiesWrapperPartialMapping": { | ||
"v": 1, | ||
"properties": { | ||
"group": "weird", | ||
"genre": "crime" | ||
} | ||
} | ||
}, | ||
{ | ||
"_id": "zum", | ||
"properties": { | ||
"group": "weird", | ||
"genre": "action" | ||
}, | ||
"posts": [ | ||
{ | ||
"content": "ping zum", | ||
"visible": true | ||
}, | ||
{ | ||
"content": "pong zum", | ||
"visible": false | ||
}, | ||
{ | ||
"content": "invisible zum", | ||
"visible": false | ||
} | ||
], | ||
"propertiesWrapperNoMapping": { | ||
"properties": { | ||
"group": "weird", | ||
"genre": "action" | ||
} | ||
}, | ||
"propertiesWrapperPartialMapping": { | ||
"v": 1, | ||
"properties": { | ||
"group": "weird", | ||
"genre": "action" | ||
} | ||
} | ||
} | ||
] |
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 |
---|---|---|
@@ -1,4 +1,12 @@ | ||
{ | ||
"_id": "coolest", | ||
"description": "the coolest authors" | ||
} | ||
[ | ||
{ | ||
"_id": "coolest", | ||
"description": "the coolest authors", | ||
"tag": "coolest tag" | ||
}, | ||
{ | ||
"_id": "weird", | ||
"description": "authors somehow wierd", | ||
"tag": "weird tag" | ||
} | ||
] |
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