\newline Logo
Left arrow icon.
Go to Previous Chapter
Go to Previous Chapter
SECTION 3GraphQL Server
Course Thumbnail of Fullstack React.Fullstack React
  • CHAPTER 1
    JSX and the Virtual DOM
    • SECTION 1.1React Uses a Virtual DOM
    • SECTION 1.2Why Not Modify the Actual DOM?
    • SECTION 1.3What is a Virtual DOM?
    • SECTION 1.4Virtual DOM Pieces
    • SECTION 1.5ReactElement {#react_element}
    • SECTION 1.6JSX
    • SECTION 1.7References
  • CHAPTER 2
    Relay Classic
    • SECTION 2.1Introduction
    • SECTION 2.2Relay is a Data Architecture
    • SECTION 2.3Relay GraphQL Conventions
    • SECTION 2.4Adding Relay to Our App
    • SECTION 2.5BooksPage
    • SECTION 2.6Changing Data With Mutations
    • SECTION 2.7Building a Book's Page
    • SECTION 2.8Mutations
    • SECTION 2.9Conclusion
    • SECTION 2.10Where to Go From Here
  • CHAPTER 3
    GraphQL Server
    • SECTION 3.1Writing a GraphQL Server
    • SECTION 3.2Special setup for Windows users
    • SECTION 3.3Connections
    • SECTION 3.4Summary
  • CHAPTER 4
    Using GraphQL
    • SECTION 4.1Your First GraphQL Query
    • SECTION 4.2GraphQL Benefits
    • SECTION 4.3GraphQL vs. REST
    • SECTION 4.4GraphQL vs. SQL
    • SECTION 4.5Relay and GraphQL Frameworks
    • SECTION 4.6Chapter Preview
    • SECTION 4.7Consuming GraphQL
    • SECTION 4.8Exploring With GraphiQL
    • SECTION 4.9GraphQL Syntax 101
    • SECTION 4.10Complex Types
    • SECTION 4.11Exploring a Graph
    • SECTION 4.12Graph Nodes
    • SECTION 4.13Viewer
    • SECTION 4.14Graph Connections and Edges
    • SECTION 4.15Mutations
    • SECTION 4.16Subscriptions
    • SECTION 4.17GraphQL With JavaScript
    • SECTION 4.18GraphQL With React
    • SECTION 4.19Wrapping Up
  • CHAPTER 5
    Changelog
    • CHAPTER 6
      Appendix C: React Hooks
      • SECTION 6.1Motivation behind Hooks
      • SECTION 6.2How Hooks Map to Component Classes
      • SECTION 6.3Using Hooks Requires react "next"
      • SECTION 6.4useState() Hook Example
      • SECTION 6.5useEffect() Hook Example
      • SECTION 6.6useContext() Hook Example
      • SECTION 6.7useRef() Hook Example
      • SECTION 6.8Using Custom Hooks
      • SECTION 6.9Writing Tests for React Hooks
      • SECTION 6.10Community Reaction to Hooks
      • SECTION 6.11References to the Different types of Hooks
      • SECTION 6.12Future of Hooks
      • SECTION 6.13More Resources
    • CHAPTER 7
      Advanced Component Configuration with props, state, and children
      • SECTION 7.1Intro
      • SECTION 7.2How to use this chapter
      • SECTION 7.3Components
      • SECTION 7.4props are the parameters {#component_props}
      • SECTION 7.5PropTypes {#component_proptypes}
      • SECTION 7.6Default props with getDefaultProps() {#get_default_props}
      • SECTION 7.7Context
      • SECTION 7.8state {#component_state}
      • SECTION 7.9Stateless Components
      • SECTION 7.10Talking to Children Components with props.children {#component_props_children}
      • SECTION 7.11Summary
      • SECTION 7.12References
    • CHAPTER 8
      How to Get the Most Out of This Book
      • SECTION 8.1Overview
      • SECTION 8.2Running Code Examples
      • SECTION 8.3Code Blocks and Context
      • SECTION 8.4Getting Help
      • SECTION 8.5Emailing Us
      • SECTION 8.6Get excited
    • CHAPTER 9
      Intermediate Redux
      • SECTION 9.1Using createStore() from the redux library
      • SECTION 9.2Representing messages as objects in state
      • SECTION 9.3Introducing threads
      • SECTION 9.4Adding the ThreadTabs component
      • SECTION 9.5Supporting threads in the reducer
      • SECTION 9.6Adding the action OPEN_THREAD
      • SECTION 9.7Breaking up the reducer function
      • SECTION 9.8Adding messagesReducer()
      • SECTION 9.9Defining the initial state in the reducers
      • SECTION 9.10Using combineReducers() from redux
      • SECTION 9.11Next up
    • CHAPTER 10
      Your first React Web Application
      • SECTION 10.1Building Product Hunt
      • SECTION 10.2Setting up your development environment
      • SECTION 10.3Special instruction for Windows users
      • SECTION 10.4JavaScript ES6/ES7
      • SECTION 10.5Getting started
      • SECTION 10.6What's a component?
      • SECTION 10.7Building Product
      • SECTION 10.8Making Product data-driven
      • SECTION 10.9React the vote (your app's first interaction)
      • SECTION 10.10Updating state and immutability
      • SECTION 10.11Refactoring with the Babel plugin transform-class-properties {#babel-preset-tcp}
      • SECTION 10.12Congratulations!
    • CHAPTER 11
      Intro to Flux and Redux
      • SECTION 11.1Why Flux?
      • SECTION 11.2Flux implementations
      • SECTION 11.3Redux
      • SECTION 11.4Building a counter
      • SECTION 11.5Building the store
      • SECTION 11.6The core of Redux
      • SECTION 11.7The beginnings of a chat app
      • SECTION 11.8Building the reducer()
      • SECTION 11.9Subscribing to the store
      • SECTION 11.10Connecting Redux to React
      • SECTION 11.11Next up
    • CHAPTER 12
      Routing
      • SECTION 12.1What's in a URL?
      • SECTION 12.2Building the components of react-router
      • SECTION 12.3Dynamic routing with React Router
      • SECTION 12.4Supporting authenticated routes
      • SECTION 12.5Recap
    • CHAPTER 13
      Components
      • SECTION 13.1A time-logging app
      • SECTION 13.2Getting started
      • SECTION 13.3Breaking the app into components
      • SECTION 13.4The steps for building React apps from scratch
      • SECTION 13.5Step 2: Build a static version of the app
      • SECTION 13.6Step 3: Determine what should be stateful
      • SECTION 13.7Step 4: Determine in which component each piece of state should live
      • SECTION 13.8Step 5: Hard-code initial states
      • SECTION 13.9Step 6: Add inverse data flow
      • SECTION 13.10Updating timers
      • SECTION 13.11Deleting timers
      • SECTION 13.12Adding timing functionality
      • SECTION 13.13Add start and stop functionality
      • SECTION 13.14Methodology review
    • CHAPTER 14
      Appendix B: ES6
      • CHAPTER 15
        Using Webpack with Create React App
        • SECTION 15.1Exploring Create React App
        • SECTION 15.2Webpack basics
        • SECTION 15.3Making modifications to the sample app
        • SECTION 15.4Creating a production build
        • SECTION 15.5Ejecting
        • SECTION 15.6Using Create React App with an API server
        • SECTION 15.7Webpack at large
      • CHAPTER 16
        Unit Testing
        • SECTION 16.1Writing tests without a framework
        • SECTION 16.2What is Jest?
        • SECTION 16.3Using Jest
        • SECTION 16.4Testing strategies for React applications
        • SECTION 16.5Testing a basic React component with Enzyme
        • SECTION 16.6Writing tests for the food lookup app
        • SECTION 16.7Writing FoodSearch.test.js
        • SECTION 16.8Further reading
      • CHAPTER 17
        Appendix A: PropTypes {#appendix_prop_types}
        • SECTION 17.1Validators
        • SECTION 17.2string
        • SECTION 17.3number
        • SECTION 17.4boolean
        • SECTION 17.5function
        • SECTION 17.6object
        • SECTION 17.7object shape
        • SECTION 17.8multiple types
        • SECTION 17.9instanceOf
        • SECTION 17.10array
        • SECTION 17.11array of type
        • SECTION 17.12node
        • SECTION 17.13element
        • SECTION 17.14any type
        • SECTION 17.15Optional & required props
        • SECTION 17.16custom validator
      • CHAPTER 18
        Forms
        • SECTION 18.1Forms 101
        • SECTION 18.2Text Input
        • SECTION 18.3Remote Data
        • SECTION 18.4Async Persistence
        • SECTION 18.5Redux
        • SECTION 18.6Form Modules
      • CHAPTER 19
        Components & Servers
        • SECTION 19.1Introduction
        • SECTION 19.2server.js
        • SECTION 19.3The Server API
        • SECTION 19.4Playing with the API
        • SECTION 19.5Loading state from the server
        • SECTION 19.6client
        • SECTION 19.7Sending starts and stops to the server
        • SECTION 19.8Sending creates, updates, and deletes to the server
        • SECTION 19.9Next up
      • CHAPTER 20
        Using Presentational and Container Components with Redux
        • SECTION 20.1Removing store from App
        • SECTION 20.2Generating containers with react-redux
        • SECTION 20.3Action creators
        • SECTION 20.4Conclusion
      • CHAPTER 21
        React Native
        • SECTION 21.1Init
        • SECTION 21.2Routing
        • SECTION 21.3Play around with it
        • SECTION 21.4<Navigator />
        • SECTION 21.5Web components vs. Native components
        • SECTION 21.6Styles
        • SECTION 21.7HTTP requests
        • SECTION 21.8What is a promise
        • SECTION 21.9Single-use guarantee
        • SECTION 21.10Creating a promise
        • SECTION 21.11Debugging with React Native
        • SECTION 21.12Where to go from here
      Right arrow icon.
      Go to Next Chapter
      Go to Next Chapter
      SECTION 5Changelog
      • Go Pro
      • Log In

      Using GraphQL

      Table of Contents
      • Section 4.1Your First GraphQL Query
      • Section 4.2GraphQL Benefits
      • Section 4.3GraphQL vs. REST
      • Books
      • Fullstack React
      • Using GraphQL
      • Go To Previous Lesson
        GraphQL Server
        GraphQL Server
      • Go To Next Lesson
        Changelog
        Changelog