Hey guys, seeing 'query malformed' no matter what field I try to use.
I am trying to use postman to input data for my GET to pull back but seeing this issue.
If I use postman to input data into my POST using the same method I have no issue.
The code snippet is:
const { body } = await client.search({
filter_path: 'hits.hits._source',
body: {
query: {
term: result,
},
},
});
The result comes in like a simple JSON format. AWS outputs it like so:
{ "Hello": "World!" }
Whereas if I hardcode it in like:
term: { Hello: "World!" }
there is no problem
Anyone see any problems with how I am inserting my data?
Thanks.