mirror of
https://github.com/circuithub/rel8.git
synced 2024-10-27 02:08:37 +03:00
Fix inner join example (#50)
This commit is contained in:
parent
19ee619a82
commit
2ba99eaca8
@ -194,7 +194,7 @@ and this query can be written in Rel8 as::
|
|||||||
|
|
||||||
authorForBlogPost :: BlogPost Expr -> Query (Author Expr)
|
authorForBlogPost :: BlogPost Expr -> Query (Author Expr)
|
||||||
authorForBlogPost blogPost =
|
authorForBlogPost blogPost =
|
||||||
filter ((blogPostAuthorId blogPost ==.) authorId author) =<<
|
filter ((blogPostAuthorId blogPost ==.) . authorId) =<<
|
||||||
each authorSchema
|
each authorSchema
|
||||||
|
|
||||||
While this is a little more code over all, in our experience this style
|
While this is a little more code over all, in our experience this style
|
||||||
|
Loading…
Reference in New Issue
Block a user