Created
December 13, 2016 22:42
-
-
Save jbrown215/d445bbb5b26a7ac4e1fdf794d74e8d49 to your computer and use it in GitHub Desktop.
Query Authors for a paper
This file contains 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
getAuthorList :: Entity Paper -> Handler [Entity Author] | |
getAuthorList (Entity paperId _paper) = runDB $ selectList [AuthorPaper ==. paperId] [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment