graphql-compose / graphql-compose/graphql-compose-elasticsearch
Query for nested values, not documented.
- 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.