You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ This exercise is part of the [React GraphQL Academy](http://reactgraphql.academy
10
10
11
11
## Exercise part 1
12
12
13
-
[](TODO DEPLOY URL)
13
+
Given the following [GraphQL API](https://us-central1-rga-mocked-apis.cloudfunctions.net/graphql) / https://api.reactgraphql.academy/graphql:
14
14
15
-
- Query a list with all the training titles
16
-
- Query how many training are in the system?
17
-
- Query a single training by id (try id equals TODO ADD ONE????????) and get its name
15
+
- Query a list with all the training and retrieve the title and language for each
16
+
- Query a single discount by id (try id equals `dis:422`) and get its name
17
+
- Query how many languages are in the system?
18
18
- How many types do we have in the system?
19
19
20
20
## Exercise part 2
@@ -248,6 +248,8 @@ query getDangerousDiscount {
248
248
249
249
Once implemented, do you see any problems/ vulnerability issues on that query?
250
250
251
+
🤸🏾Do you want some extra workout? Create an [enumeration](https://graphql.org/learn/schema/#enumeration-types) for the languages. Add field language to the Training object type that uses the language enum.
252
+
251
253
## Homework
252
254
253
255
You are going to build a GraphQL API on top of an existing REST API. Steps:
0 commit comments