graphql-compose-elasticsearch
graphql-compose-elasticsearch copied to clipboard
It connected to localhost:9200 but not work at all
elastic & server start right, but mutation fail
yarn run v1.12.3 $ nodemon --watch 'src//*' -e ts,tsx --exec ts-node src/index.ts [nodemon] 1.18.10 [nodemon] to restart at any time, enter
rs[nodemon] watching: src//* [nodemon] startingts-node src/index.tsElasticsearch INFO: 2019-02-19T11:22:16Z Adding connection to http://localhost:9200/
Elasticsearch DEBUG: 2019-02-19T11:22:20Z starting request { "method": "HEAD", "requestTimeout": 30000, "castExists": true, "path": "/", "query": {} }
Elasticsearch TRACE: 2019-02-19T11:22:20Z -> HEAD http://localhost:9200/
<- 200
Elasticsearch DEBUG: 2019-02-19T11:22:20Z Request complete
Server ready at http://localhost:3000/graphql

it is interested example, but no any help or guild

hi @webnah , you have to write your custom logic/implementations in the project resolver here .
Please creating a small example of insert data into ES. I am a newbie both TS & JS * graphql too