'Manually deserialize the app field, used to get the app count.
The reason we don\'t just do len(obj._app_ids) is because ES may have
filtered out some apps. These apps won\'t exist in the app map, so it
will affect our total app count. This forces us to run the to_native
operation twice, but it is not expensive.'

def get_apps(self, obj):

    app_field = AppESHomeField(many=True)
    app_field.context = self.context
    return app_field.to_representation(obj._app_ids)
