My suggestion is to create a Backend workflow called something like “updateavgrating”. That workflow should take in a parameter for the restaurant item that needs to be updated (i.e. “pRestaurant”). There should be an action in that backend workflow to make a change to pRestaurant, updating the AvgRating based on the new set of reviews.

In the front end, when a User clicks Create a review and finishes submitting, that workflow should include a Schedule an API Workflow action for the “updateavgrating” backend workflow.