Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arjunrao87/world-countries-graphql-api
GraphQL API for retrieving information about countries of the world
https://github.com/arjunrao87/world-countries-graphql-api
countries data database geographic-data geography graphql world
Last synced: about 6 hours ago
JSON representation
GraphQL API for retrieving information about countries of the world
- Host: GitHub
- URL: https://github.com/arjunrao87/world-countries-graphql-api
- Owner: arjunrao87
- License: other
- Created: 2018-05-09T17:03:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-30T17:16:01.000Z (over 6 years ago)
- Last Synced: 2024-05-21T08:18:17.355Z (6 months ago)
- Topics: countries, data, database, geographic-data, geography, graphql, world
- Language: JavaScript
- Homepage:
- Size: 282 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# World Countries [![CircleCI](https://circleci.com/gh/arjunrao87/world-countries-graphql-api.svg?style=svg)](https://circleci.com/gh/arjunrao87/world-countries-graphql-api) [![dependencies Status](https://david-dm.org/arjunrao87/world-countries-graphql-api/status.svg)](https://david-dm.org/arjunrao87/world-countries-graphql-api)
## Make GraphQL requests to http://104.236.66.151:5000/graphql
## Use Playground at http://104.236.66.151:5000/playgroundGet information about countries using a GraphQL API
Simple GraphQL wrapper around [REST Countries](https://restcountries.eu) which acts as the source of data
Schema is available at [World Countries Schema](typeDefs.js)
- Sample query
```# Try to write your query here
# Try to write your query here
{
countries(input:{
regionalBlock: EU
}){
name
nativeName
demonym
flag
capital
population
latitude
longitude
translations{
de
es
fr
ja
it
br
pt
}
languages{
iso639_1
iso639_2
name
nativeName
}
timezones
currencies{
code
name
symbol
}
topLevelDomain
altSpellings
region
subregion
area
gini
timezones
borders
alpha2Code
alpha3Code
callingCodes
cioc
numericCode
regionalBlocs{
acronym
name
otherAcronyms
otherNames
}
}
}
```