User Tools

Site Tools


code:graphql:confrence2020

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
code:graphql:confrence2020 [2020/03/30 18:23] – ltsover9000code: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:
 </code> </code>
  
 +
 +===== Interface and misc =====
 +
 +returns the typename for the field
 +<code>__typename</code>
 +
 +
 +<code>...on </code>
 +<code>
 +type pet{
 +  id
 +  name
 +  weight
 +  ...on Cat{
 +    curious
 +  }
 +  ...on Stingray{
 +    stingy
 +  }
 +}
 +</code>
 +
 +
 +===== 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? should they return data or no? 
code/graphql/confrence2020.1585592639.txt.gz · Last modified: by ltsover9000