withCount
method.true
​
Count
, i.e. comments
will be available under commentsCount
. AS
syntax as follows:with
function.Post
entity could have pendingComments
and approvedComments
relationships. Dynamic constraints are more useful when applying user-provided data to the constraints like searching.