# How to query an embedded property?

Compose the query & use matches to query an embedded property:


 
 



def getEmployeesInCity(city: String): List[EmployeeRow] = {
  val addressQuery = AddressQuery().city.is(city)
  val employeesInCity = EmployeeQuery().address.matches(addressQuery).find
  employeesInCity
}