This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| code:graphql:confrence2020 [2020/03/30 18:23] – ltsover9000 | code:graphql:confrence2020 [2020/03/30 23:25] (current) – ltsover9000 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Notes ====== | ====== Notes ====== | ||
| - | |||
| - | |||
| * One endpoint `/graphql` | * One endpoint `/graphql` | ||
| * Query | * Query | ||
| Line 129: | Line 127: | ||
| </ | </ | ||
| + | |||
| + | ===== Interface and misc ===== | ||
| + | |||
| + | returns the typename for the field | ||
| + | < | ||
| + | |||
| + | |||
| + | < | ||
| + | < | ||
| + | type pet{ | ||
| + | id | ||
| + | name | ||
| + | weight | ||
| + | ...on Cat{ | ||
| + | curious | ||
| + | } | ||
| + | ...on Stingray{ | ||
| + | stingy | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== resolvers ===== | ||
| + | |||
| + | resolvers are used to get data wherever it is | ||
| + | |||
| + | |||
| + | ===== Maybe give some info on ApolloClient ===== | ||
| + | |||
| + | |||
| + | Apollo dev tool (chrome + firefox addon) | ||
| + | |||
| + | * shows schema + graphiql | ||
| + | * displays cached data | ||
| + | * root query | ||
| + | |||
| + | |||
| + | How are you supposed to use subscriptions? | ||