Skip to content

Create rateRoute() cloud code function in Parse CC  #7

@yintothayang

Description

@yintothayang

request.data: { routeId: "route id here", userId: "user id here" }

functionality -

  • Add User the Route's attributes.usersRated array of User Pointers
  • Recalculate Average the Route's attributes.rating
  • Add route to the users's attributes.routesRated array of Route Pointers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions