Add solution
This commit is contained in:
parent
41ae601c19
commit
2c35421a33
4 changed files with 8 additions and 11 deletions
|
|
@ -4,7 +4,7 @@ fetch("https://countries.trevorblades.com/", {
|
|||
"method": "POST",
|
||||
"body": JSON.stringify(
|
||||
{
|
||||
query: "", // Fill in Query here
|
||||
query: "query continent($code: ID!) { continent(code: $code) { name countries { name code }}}",
|
||||
"operationName": "continent",
|
||||
"variables": { "code": continentCode }
|
||||
}), headers: { "Content-Type": "application/json" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue