Hello!
With the new Geddy changes, i've need to changes all my Arrays for Objects.
I have one voting system for comments, with array its look like this:
Later Model -> Porperty PositiveVotes: Array
Now -> property Votes: Object
Later -> Votes has userIds like: PositiveVotes: [ 'id1', 'id2', 'id3', 'id4', 'id5' ]
I used ".PUSH" -> comment.PositiveVotes.push( the new id ) and it works
Now with object, how can I put IDs and vote type into the object? I need some like this -> Votes: { {userId: 1, vote: 1} , { userId: 2, vote: 0 }, { userId: 3, vote: 1} }
How can I incrment the object withe the diferent user votes?
Thanks!!!!