findFriendPosts() {
        return post_1.default.byWhere(`creator in (
                select friendTo
                from friends
                where friendFrom = ${this.id}
                union all
                select ${this.id}
             )`, 'creationDate desc');
    }
// Find all posts by this user and friends of this user
Find all posts by this user and friends of this user
Find all posts by this user and friends of this user
findFriendPosts() {
        return post_1.default.byWhere(`creator in (
                select friendTo
                from friends
                where friendFrom = ${this.id}
                union all
                select ${this.id}
             )`, 'creationDate desc');
    }
findFriendPosts ( ) { return post_1 . default . byWhere ( ` ${ this . id } ${ this . id } ` , 'creationDate desc' ) ; }
Find all posts by this user and friends of this user
Find all posts by this user and friends of this user