Hi, i’m new in GraphQl and i’m starting in graphco...
# prisma-whats-new
s
Hi, i’m new in GraphQl and i’m starting in graphcool. I started a simple project but i’m unable to restrict get some record to owner. Example: User (id, name, posts) Post (id, text, user) When i have a query like next, how I can only return post owned by authenticated user? I trying with permission but i’m unable to set correctly.
Copy code
query {
  allPosts {
    text
    user {
      name
    }  
  }
}
Thanks for your time!!
a
Could you create a post in the forum please? https://www.graph.cool/forum/
s
Yes, no problem
👍🏻 1
Solved, thanks @dankent for your answer in forum.