Query using value of Reference Item

I have very simple schema of customer profile. I am storing master data of all States separately and user can pick/choose state value. I want to query all customers by state value (Give me all employees from New Jersey).

{“filter”: {“path”: “data/state/iv”,“op”: “eq”,“value”: “a265266f-e072-4f3f-bdc6-77ad83121709”}}

Above Works but I want to query via state code or value (NJ/New Jersey). Is that possible?

No, you have to go the other way around. Query for the master and then resolve the references, e.g. with graphql.