feat: Country.capital

This commit is contained in:
Martin Kavík
2020-03-27 08:40:10 +01:00
parent 5d37a26c08
commit ce144cb5ee
2 changed files with 3 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ A public GraphQL API for information about countries, continents, and languages.
country(code: BR) {
name
native
capital
emoji
currency
languages {
@@ -49,6 +50,7 @@ The above GraphQL query will produce the following JSON response:
"country": {
"name": "Brazil",
"native": "Brasil",
"capital": "Brasília",
"emoji": "🇧🇷",
"currency": "BRL",
"languages": [

View File

@@ -27,6 +27,7 @@ const typeDefs = gql`
native: String!
phone: String!
continent: Continent!
capital: String!
currency: String!
languages: [Language!]!
emoji: String!