Coder Social home page Coder Social logo

i-dont-know-graphql's Introduction

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 }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.