Skip to content

Instantly share code, notes, and snippets.

@IamSmith
Created April 15, 2013 10:04
Show Gist options
  • Save IamSmith/5387094 to your computer and use it in GitHub Desktop.
Save IamSmith/5387094 to your computer and use it in GitHub Desktop.
create : {
contentId: 'fefewfew',
userId: [optional]
}
get : contentId, userId
[{
contentId: 'blah'
count: 10,
userLiked: true
}]
get : [contentId, contentId], userId
[{
contentId: 'blah'
count: 10,
userLiked: true
},
{
contentId: 'blah'
count: 10,
userLiked: true
},
{
contentId: 'blah'
count: 10,
userLiked: true
},
{
contentId: 'blah'
count: 10,
userLiked: true
}]
User cant like content more than once
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment