This commit is contained in:
ryanwong
2022-02-06 22:15:10 -05:00
parent 46625dd6cd
commit a07577bffa
145 changed files with 12008 additions and 0 deletions
Regular → Executable
+55
View File
@@ -0,0 +1,55 @@
# day 11
## Instructions
- setup project
- clone to your github
- Read the documentation https://www.apollographql.com/docs/
- Create the following:
```
Create model
movies
- id
- title
- director_id
- main_genre
- status
- review
review
- id
- notes
- movie_id
director
- id
- name
actors
- id
- name
movie_actor
- id
- actor_id
- movie_id
genre
- id
- name
genre_movie
- id
- movie_id
- genre_id
```
- Create resolvers and make query for the 4 tables. Inside movies, we can get all actors in that movie
- Create a query in apollo to get all movies with reviews > # provided by user
- Create a mutation to add an actor to every movie for given genre
- Everything must be done by end of date