PhotoShare is the main back-end exercise for GraphQL Workshop. In this exercise, students build a GraphQL API for a small photo sharing application.
- Helper Library - A library of helper functions
- Sample Data - Photos - Sample JSON data for Photos
- Sample Data - Users - Sample JSON data for Users
- Test Upload Page - A page to test uploading files
- Initial Project Folder
- Apollo Server 2.0
- Counting the Photos
- Connecting a Database
- Setting Up Context
- Posting a Photo
- Handling Photo Categories
- Using an Input Type
- Listing All Photos
- Querying a Single Photo
- Challenge: Adding the User Type
- Connecting Photos to Users
- Connecting Users to Photos
- Adding currentUser to context
- Configure an express server
- Configure Github OAuth
- Add
githubLogin
mutation - Add fake users to
githubLogin
mutation - Identify the
currentUser
- Adding Subscription Support
- Uploading File with postPhoto
- Adding custom scalar for
DateTime