From ce144cb5ee1146c1ec0ffae0b9535bb2812bcecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kav=C3=ADk?= Date: Fri, 27 Mar 2020 08:40:10 +0100 Subject: [PATCH] feat: Country.capital --- README.md | 2 ++ index.js | 1 + 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 0982e99..8b56b6c 100644 --- a/README.md +++ b/README.md @@ -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": [ diff --git a/index.js b/index.js index 723969d..148fa6a 100644 --- a/index.js +++ b/index.js @@ -27,6 +27,7 @@ const typeDefs = gql` native: String! phone: String! continent: Continent! + capital: String! currency: String! languages: [Language!]! emoji: String!