Hi, I am currently going through
@nikolasburk’s tutorial
https://www.howtographql.com/react-relay/1-getting-started/. I am wondering about the Viewer Parameter in the fragment definition. Where/how is it defined in part 1 creating the backend using Graphcool? Is it auto generated by the framework? What would be the prisma equivalent without using the viewer pattern be?
To be precise, what would this fragment look like if I was unsing Prisma/Yoga without any viewer pattern and just wanted to query a public endpoint without auth?
export default createFragmentContainer(LinkList, graphql`
fragment LinkList_viewer on Viewer {
allLinks(last: 100, orderBy: createdAt_DESC) @connection(key: "LinkList_allLinks", filters: []) {
edges {
node {
...Link_link
}
}
}
}
`)