ENGLISH

Learning GraphQL: declarative data fetching for modern web apps

Book information

Publisher
O'Reilly Media, Inc.
Year
2018
ISBN
9781492030713, 9781492030683, 1492030686, 9781492044864, 1492044865
Language
english
Format
MOBI
Filesize
11 MB (11022171 bytes)
Edition
First edition
Pages
\0
Time added
2020-07-26 19:24:52

Description

Intro; Copyright; Table of Contents; Preface; Acknowledgments; Conventions Used in This Book; Using Code Examples; O'Reilly Safari; How to Contact Us; Chapter 1. Welcome to GraphQL; What Is GraphQL?; The GraphQL Specification; Design Principles of GraphQL; Origins of GraphQL; History of Data Transport; Remote Procedure Call; Simple Object Access Protocol; REST; REST Drawbacks; Overfetching; Underfetching; Managing REST Endpoints; GraphQL in the Real World; GraphQL Clients; Chapter 2. Graph Theory; Graph Theory Vocabulary; History of Graph Theory; Trees are Graphs; Graphs in the Real World Intro Copyright Table of Contents Preface Acknowledgments Conventions Used in This Book Using Code Examples O'Reilly Safari How to Contact Us Chapter 1. Welcome to GraphQL What Is GraphQL? The GraphQL Specification Design Principles of GraphQL Origins of GraphQL History of Data Transport Remote Procedure Call Simple Object Access Protocol REST REST Drawbacks Overfetching Underfetching Managing REST Endpoints GraphQL in the Real World GraphQL Clients Chapter 2. Graph Theory Graph Theory Vocabulary History of Graph Theory Trees are Graphs Graphs in the Real World Chapter 3. The GraphQL Query LanguageGraphQL API Tools GraphiQL GraphQL Playground Public GraphQL APIs The GraphQL Query Edges and Connections Fragments Mutations Using Query Variables Subscriptions Introspection Abstract Syntax Trees Chapter 4. Designing a Schema Defining Types Types Scalar Types Enums Connections and Lists One-to-One Connections One-to-Many Connections Many-to-Many Connections Lists of Different Types Arguments Filtering Data Mutations Input Types Return Types Subscriptions Schema Documentation Chapter 5. Creating a GraphQL API Project Setup ResolversRoot Resolvers Type Resolvers Using Inputs and Enums Edges and Connections Custom Scalars apollo-server-express Context Installing Mongo Adding Database to Context GitHub Authorization Setting Up GitHub OAuth The Authorization Process githubAuth Mutation Authenticating Users Conclusion Chapter 6. GraphQL Clients Using a GraphQL API fetch Requests graphql-request Apollo Client Apollo Client with React Project Setup Configure Apollo Client The Query Component The Mutation Component Authorization Authorizing the User Identifying the User Working with the CacheFetch Policies Persisting The Cache Updating the Cache Chapter 7. GraphQL in the Real World Subscriptions Working with Subscriptions Consuming Subscriptions Uploading Files Handling Uploads on the Server Posting a New Photo with Apollo Client Security Request Timeouts Data Limitations Limiting Query Depth Limiting Query Complexity Apollo Engine Taking the Next Steps Incremental Migration Schema-First Development GraphQL Events Community Community Slack Channels Index About the Authors Colophon

Similar books