PhotoShare is the main back-end exercise for GraphQL Workshop. In this exercise, students build a GraphQL API for a small photo sharing application.
- Initial Project Folder
- Apollo Server 2.0
- Counting the Photos
- postPhoto Mutation
- Photo and allPhotos Query
- PhotoCategory enum
- Input Type
- Adding the Photo Query
- Challenge: Adding the User Type
- Solution: user and user queries
- Adding the url field
- Connecting user to photos
- Connecting photo to user
- Adding mongo functions jump ahead link
- Configure Github OAuth
- Add
githubAuthmutation - Add fake users to
githubAuthmutation - Identify the
currentUser
- Adding Subscription Support
- Uploading File with postPhoto jump ahead link
- Adding custom scalar for
DateTime