Piecing Together GraphQL

added by JavaScript Kicks
12/11/2018 8:27:01 AM

491 Views

Try refreshing while logged in. On page load the app will make a request to check user's authentication state. If authenticated, the page will then fetch the user's data. Open /src/index.js you'll see the graphql-yoga server instantiated with GraphQLServer. It takes a number of arguments: Typedefs: This is our GraphQL schema.


0 comments