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
- Basic GraphQL Yoga Setup (diff) (files)
- Structure, Move Schema (diff) (files)
- Structure, Move Resolvers (diff) (files)
- Extend Express, Add Home Route (diff) (files)
- GraphQL Yoga Options (diff) (files)
- Counting the Photos (diff) (files)
- Posting a Photo (diff) (files)
- Handling Photo Categories (diff) (files)
- Using an Input Type (diff) (files)
- Listing All Photos (diff) (files)
- Querying a Single Photo (diff) (files)
- Adding the User Type (diff) (files)
- Adding Some Sample Data (diff) (files)
- Listing All Users (diff) (files)
- Querying a Single User (diff) (files)
- Add User to postPhoto Mutation (diff) (files)
- Adding postedBy Connection (diff) (files)
- Adding postedPhotos (diff) (files)
- Adding Sample Tags (diff) (files)
- Finding Users Tagged in a Photo (diff) (files)
- Finding All Photos where a User has Been Tagged (diff) (files)
- Adding the Tag Photo Mutation (diff) (files)
- Adding a Custom Scalar (diff) (files)
- Environment Variables (diff)(files)
- Adding a Database Connection to Context (diff) (files)
- Querying Data (diff) (files)
- Posting Photos to the Database (diff) (files)
- Adding Fake Users (diff) (files)
- Tagging Photos with the Database (diff) (files)