Xiaoyun Yang
09/19/2018, 1:41 AMprisma.posts()
command will omit the author: User!
field since it's a relation. Do I have to write my own fragment or another graphql query to send via prisma.request
? This seems a little redudant, and I want to use what prisma
has already generated.w0wka91
09/19/2018, 1:42 AMXiaoyun Yang
09/19/2018, 1:55 AMprisma.posts
to return all the field in the posts
including author
so in the frontend I can write query like { posts { author { name } } }
. I just realize it's essentially the discussion here https://www.prisma.io/forum/t/help-understanding-prisma-clients-value-proposition/4394. I wonder if I have to go back to prisma-bindings.w0wka91
09/19/2018, 1:59 AMnilan
09/19/2018, 11:37 AM