I am trying to query a nested item but I am not sure how to formulate the query especially using javascript bodybuilder. Below is the mapping
I am trying to get all the active items (isActive: true) that have the "anomaly" id. I am not sure how to go about querying ElasticSearch. In SQL I could just do something like a contains or having. I am using Node.js bodybuilder on the backend to query elasticsearch.