Merge pull request #138 from K0Te/fix-readme

Fix LeftOuterJoin example in README.
This commit is contained in:
Matt Parsons 2019-09-17 09:49:03 -06:00 committed by GitHub
commit c9d643878c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,8 +157,8 @@ However, you may want your results to include people who don't have any blog pos
```haskell
select $
from $ \(p `LeftOuterJoin`` mb) -> do
on (p ^. PersonId ==. mb ?. BlogPostAuthorId)
from $ \(p `LeftOuterJoin` mb) -> do
on (just (p ^. PersonId) ==. mb ?. BlogPostAuthorId)
orderBy [asc (p ^. PersonName), asc (mb ?. BlogPostTitle)]
return (p, mb)
```