{"action":"created","issue":{"url":"https://api.github.com/repos/nordsimon/elasticsearch-graphql/issues/3","repository_url":"https://api.github.com/repos/nordsimon/elasticsearch-graphql","labels_url":"https://api.github.com/repos/nordsimon/elasticsearch-graphql/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/nordsimon/elasticsearch-graphql/issues/3/comments","events_url":"https://api.github.com/repos/nordsimon/elasticsearch-graphql/issues/3/events","html_url":"https://github.com/nordsimon/elasticsearch-graphql/issues/3","id":174164704,"number":3,"title":"more examples","user":{"login":"cyrfer","id":4392990,"avatar_url":"https://avatars.githubusercontent.com/u/4392990?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrfer","html_url":"https://github.com/cyrfer","followers_url":"https://api.github.com/users/cyrfer/followers","following_url":"https://api.github.com/users/cyrfer/following{/other_user}","gists_url":"https://api.github.com/users/cyrfer/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrfer/subscriptions","organizations_url":"https://api.github.com/users/cyrfer/orgs","repos_url":"https://api.github.com/users/cyrfer/repos","events_url":"https://api.github.com/users/cyrfer/events{/privacy}","received_events_url":"https://api.github.com/users/cyrfer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-31T01:36:56Z","updated_at":"2016-08-31T06:35:11Z","closed_at":null,"body":"This project looks very useful. I am struggling to make valid queries on my /graphql endpoint. I populated Elastic Search with data from [their tutorial](https://www.elastic.co/guide/en/elasticsearch/reference/current/_exploring_your_data.html).\r\n\r\nI understand that I need to compose a schema for the data in Elastic Search. I assume this is the same schema that is visible in the response from `//myElasticServer/indexName/typeName/_mapping`. Is this true? Or can you read the mapping and automatically generate the graphql structure without my error-prone code?\r\n\r\nI think my questions could be solved if your example was more specific. Could you make a new example that exercises the data models of the introductory example from the ElasticSearch website?\r\n\r\n* populates ES: https://www.elastic.co/guide/en/elasticsearch/reference/current/_exploring_your_data.html\r\n* shows typical queries: http://graphql.org/docs/getting-started/\r\n"},"comment":{"url":"https://api.github.com/repos/nordsimon/elasticsearch-graphql/issues/comments/243671672","html_url":"https://github.com/nordsimon/elasticsearch-graphql/issues/3#issuecomment-243671672","issue_url":"https://api.github.com/repos/nordsimon/elasticsearch-graphql/issues/3","id":243671672,"user":{"login":"cyrfer","id":4392990,"avatar_url":"https://avatars.githubusercontent.com/u/4392990?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrfer","html_url":"https://github.com/cyrfer","followers_url":"https://api.github.com/users/cyrfer/followers","following_url":"https://api.github.com/users/cyrfer/following{/other_user}","gists_url":"https://api.github.com/users/cyrfer/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrfer/subscriptions","organizations_url":"https://api.github.com/users/cyrfer/orgs","repos_url":"https://api.github.com/users/cyrfer/repos","events_url":"https://api.github.com/users/cyrfer/events{/privacy}","received_events_url":"https://api.github.com/users/cyrfer/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T06:35:11Z","updated_at":"2016-08-31T06:35:11Z","body":"Yes, I was using that for hitSchema. I changed it only when my queries were failing to produce valuable info. I would not be surprised if my queries are the issue. I had a breakpoint in the id's resolve function, but it never got hit for the requests I tried. I suspect I need to see an example query for the data populated in the elastic tutorial.\r\n\r\nThanks for explaining the custom hit schema. I will definitely need to leverage it and serve my responses from optimized sources.\r\n\r\nAgreed. That is a great benefit of GraphQL. Great tips!\r\n\r\nYes, I have been modifying your complete example for my purposes."}}
{"actor":{"display_login":"cyrfer"}}