Skip to content

CodingGarden/intro-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro to GraphQL

Overview

  • What is GraphQL?
  • See an Example GraphQL API
  • Build a Simple TODO GraphQL API (with an array)
  • **Use mongo instead of array...
  • **Build a GraphQL API on top of an existing REST API

Intro to GraphQL

  • What is GraphQL?
    • GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.
    • GraphQL provides a complete and understandable description of the data in your API
    • Gives clients the power to ask for exactly what they need and nothing more
    • Enables powerful developer tools.
    • While typical REST APIs require loading from multiple URLs, GraphQL APIs get all the data your app needs in a single request.
    • GraphQL APIs are organized in terms of types and fields, not endpoints.
  • See an Example
  • Server Side Libraries
  • Client Side Libraries
  • Schemas and Types
  • Queries and Mutations
  • Build a simple TODO GraphQL API (in memory array)
    • Create node app/install graphql-yoga
    • Define Todo Type
    • Define Query Type
      • Get All Todos
    • Define Query Resolver
      • Get All Todos
    • Define Create Mutation
    • Define Create Resolver
    • Define Delete Mutation
    • Define Delete Resolver
  • Build a simple TODO GraphQL Client
    • Create client app/install nanographql
    • Query for all on page load
  • **Use mongo instead of array...
  • **Build a GraphQL API on top of an existing REST API

Resources

About

An intro to GraphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published