Skip to content

Instantly share code, notes, and snippets.

@Tarmil
Created February 26, 2014 16:09
Show Gist options
  • Save Tarmil/9232616 to your computer and use it in GitHub Desktop.
Save Tarmil/9232616 to your computer and use it in GitHub Desktop.
let getUser =
<@ fun userId ->
query { for u in db.User do
where (u.Id = userId)
select u } @>
let q =
query { for t in db.Topic do
for user in (%getUser) t.CreatedBy do
select user }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment