add docs for mapRelations