m-nathani / graphql-compose-elasticsearch

Graphql App using Node with typescript, KOA framework and Elasticsearch
GNU Affero General Public License v3.0
39 stars 1 forks source link

It connected to localhost:9200 but not work at all #4

Open webnah opened 5 years ago

webnah commented 5 years ago

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] starting ts-node src/index.ts Elasticsearch 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

selection_407

webnah commented 5 years ago

it is interested example, but no any help or guild selection_408

m-nathani commented 5 years ago

hi @webnah , you have to write your custom logic/implementations in the project resolver here .

webnah commented 5 years ago

Please creating a small example of insert data into ES. I am a newbie both TS & JS * graphql too