Created
February 26, 2014 16:09
-
-
Save Tarmil/9232616 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
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