Public graphQL Server for the States and Local Goverment of each State in Nigeria.
graphQL API that lets you get the list of states and local goverment areas of each state in Nigeria.
Endpoint
https://ng-states.herokuapp.com/graphql
query {
# get the list of all states and their LGAs
States{
name
geoPoliticalZone
lgas
}
}
query {
# get info on a state( Bayelsa as an example ) and the LGAs
State (stateName: "Bayelsa"){
name
geoPoliticalZone
lgas
}
}
{
"data": {
"State": {
"name": "Bayelsa",
"geoPoliticalZone": "South South",
"lgas": [
{
"name": "Brass"
},
{
"name": "Ekeremor"
},
{
"name": "Kolokuma/Opokuma"
},
{
"name": "Nembe"
},
{
"name": "Ogbia"
},
{
"name": "Sagbama"
},
{
"name": "Southern Ijaw"
},
{
"name": "Yenagoa"
}
]
}
}
}
- GraphQL
- MongoDB
- Node JS
- Express JS
- Babel
This project is licensed under the MIT License - see the LICENSE.md file for details