Skip to content

Instantly share code, notes, and snippets.

@jbrown215
Created December 13, 2016 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbrown215/d445bbb5b26a7ac4e1fdf794d74e8d49 to your computer and use it in GitHub Desktop.
Save jbrown215/d445bbb5b26a7ac4e1fdf794d74e8d49 to your computer and use it in GitHub Desktop.
Query Authors for a paper
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