I was wondering how do u implement recommendations...
# prisma-whats-new
p
I was wondering how do u implement recommendations with graphcool. So if you I have a set of posts and you want to build a recommendation feed to show users only posts they are intereseted in?
a
Create an Interest Type, link Interests to Users, and to Posts
Then you can query:
Copy code
user {
   interests {
      posts {
         title
      }
   }
}
p
How does the interest type look?
and thank you for your reply
😎 1
a
Copy code
type Interest extends Node {
    users: [User!]
    posts: [Post!]
    description: String!
    ....
}
So you register on User level which Interests a User has, and on a Post which Interests it applies to.
p
Thank you! 🙂
😎 1