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 1/2] 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! From aa5ac9c092652ecf9c196934067591c8c46b1b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kav=C3=ADk?= Date: Fri, 27 Mar 2020 08:41:41 +0100 Subject: [PATCH 2/2] docs(readme): Seed example --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8b56b6c..d269b1d 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,7 @@ Check out [the playground](https://countries.trevorblades.com) to explore the sc - [ReasonML](https://medium.com/@idkjs/reasonml-and-graphql-without-graphql-part-1-192c2e9e349c) - [Country quiz app](https://github.com/byrichardpowell/Country-Quiz) (React, TypeScript) - [Python](./examples/python) +- [Seed](https://github.com/seed-rs/seed/tree/master/examples/graphql) ## License