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

Query for nested values, not documented.

Open
#68 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
584
Forks
76
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm hitting a brick wall here, so any help would be appreciated. I have data like this:

"_source": {
"ItemName": "test title 4",
"ItemBody": "The description",
"ItemAttributes": {
"colour": [
"blue",
"red"
],
"size": [
"s"
"m"
"l"
]
}
},

Is there a way to query this data, without using the dot notation, like I've tried (below). The dot is not a vilid field name, so the query doesn't work.

search(
body: {
query: {
match : { ItemAttributes.colour : "blue" }
}
}
)

Thanks in advance. Davey

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.