graphql-compose / graphql-compose/graphql-compose-elasticsearch

hits returns me the found id, score, type... but not the other fields

Open
#32 11 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
584
Forks
76
PR merge metrics
No merged PRs in 30d

Description

Hi

I am just starting with ElasticSearch and maybe it is something obvious but I can't figure it out why I can't get all the info with my query.

I used the TypeComposer example to create my own and then I query with:

```
{
searchActivities(
query: {
multi_match: {
query: "blur",
fields: ["title", "description"]
}
}
){
hits
}
}
```

But I get only:

```
"searchActivities": {
"hits": [
{
"_index": "myfirstindex",
"_type": "activities",
"_id": "2",
"_score": 0.2876821
}
]
}
```

With the other demo "API Proxy" I could get the other info, but I saw that every ES method was available, including creation or deletion of indices and I want this /graphql endpoint to be public.

Can someone point me in the right direction?

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.