Fix LeftOuterJoin example in README.

This commit is contained in:
Oleg Nykolyn 2019-09-17 18:39:35 +03:00
parent 83afa43b23
commit 4a98a70760

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)
```