[Node.js][Mobile Apps] How to update count on insert script RRS feed

  • Question

  • In Azure mobile services I want to count items when a record is inserted using the insert script. Basically counting likes for a listing like facebook.

    I have two tables, likes and listings related by listingID When a new record is inserted into likes I want to run a JS script that counts all the records in the likes table and updates the listings table likesCount field.

    Any code suggestions?

    Saturday, January 16, 2016 1:16 AM


All replies