Mapping Relationship Dynamically in ES 6.0

@dakrone @darkmoon @Akhilesh-Tiwari