Simple express-graphql
server which can respond to graphql query for Github elasticsearch app hosted on appbase.io.
graphql-compose-elasticsearch package acts as ElasticSearch Rest proxy and helps in transforming GraphQL query
into elasticsearch query
.
git clone https://github.com/appbaseio-apps/graphql-github-server.git
cd graphql-github-server
yarn && yarn start
{
elastic50(host: "https://0f448043059d:a4264120-cd7a-4574-a449-2c5df0523cb1@appbase-demo-ansible-abxiydt-arc.searchbase.io") {
search(
index: "gitxplore-latest-app"
body: "{\"query\": {\"terms\": {\"topics\": [\"javascript\"]}}}"
)
}
}