Simple express-graphql
server which can respond to graphql query for Books Search 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-elasticsearch-server.git
cd graphql-elasticsearch-serve
yarn && yarn start
{
elastic50(host: "https://nY6NNTZZ6:27b76b9f-18ea-456c-bc5e-3a5263ebc63d@scalr.api.appbase.io") {
search(
index: "good-books-ds"
body: "{\"query\": {\"terms\": {\"authors.raw\": [\"Nora Roberts\"]}}}"
)
}
}