get primaryKey from mappings