Created
May 19, 2018 19:11
-
-
Save joan38/7d43ae2cf428757af7a6c7b58c446e7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| .join(likesByKey, | |
| (denormalisedPost: DenormalisedPost, likes: Set[Like]) => | |
| denormalisedPost.lens(_.interactions.likes).set(likes)) | |
| .join(commentCountByKey, | |
| (denormalisedPost: DenormalisedPost, commentCount: Int) => | |
| denormalisedPost.lens(_.interactions.comments).set(commentCount)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment