Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

How I learn graphql

I am very interested in graphql's approach to provide a thin layer between client and server and how easy of accessing the data from server and giving out the data to client. I have been reading and learning for a while and below are resouces that I think is very helpful in learning this relative new technology which I believe that it will become one the the player in API world very soon.

Sheatsheet

Video

  • Graphql At Facebook
    • It is kind of a summary of a talk of How Facebook organise their Graphql code, especially how to handle business logic and permissions from Facebook. It is a summary but very important to know. It is just GOLD!
  • GitHub engineer announcing their graphql API
    • github has provided a graphql API in production that every one can try building app with it

Npm Package

Schema examples

Graphcool example app

  • https://github.com/graphcool-examples
    • Graphcool is a serverless graphql backend, really good for building fast App, learn graphql by building mobile app using ReactNative, sounds great right?

Key Notes:

  • AST -> an abstract syntax tree
  • root query fields
  • arguments for specifying any set of fields
  • Assigning variable
  • Keyword: mutation, fragments, query
  • Fragments: fragments are the way to group commonly used fields and reuse them.
  • Query Variables: We need to write queries with the complete syntax to use query variables.
  • Input types
    • Scalers such as Int, String, Float and Boolean
    • Enums
    • Arrays of the above types. { arunoda: author(_id: "arunoda") { ...authorInfo }, pahan: author(_id: "pahan") { ...authorInfo }, indi: author(_id: "indi") { ...authorInfo } }

fragment authorInfo on Author { _id, name, twitterHandle }

About

Document my roadtrip learning graphql

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors