Updating slider (UI element) value in database collection
Hello. I've been able to successfully create a createService, which creates entries (rows) in the "User Feedback" database collection for each page of content in my app (identified by a variable) that is rated on a scale of 1-4 using a slider UI element and a "Submit" button. What I'd like to do is to update the rating (ratingValue column) if the same user rates the same page of content, instead of creating an additional entry (row). I've provided some screenshots of services, mappings, and the database collection. I'm having trouble with the updateService as it is not working. I believe my readService and createService are correct. I've worked on this all day and am not making any progress. I hope someone can help. Thank you.
database collection:
readService:
updateService:
Events: