Learning GraphQL and Relay
暫譯: 學習 GraphQL 與 Relay
Samer Buna
- 出版商: Packt Publishing
- 出版日期: 2016-08-29
- 售價: $1,540
- 貴賓價: 9.5 折 $1,463
- 語言: 英文
- 頁數: 218
- 裝訂: Paperback
- ISBN: 1786465752
- ISBN-13: 9781786465757
-
相關分類:
Web API
海外代購書籍(需單獨結帳)
商品描述
Key Features
- Take your React applications to the next level with GraphQl and Relay
- Explore the concepts of data fetching, data handling, and more
- Learn to deploy your applications, which are compliant with GraphQl and Relay
Book Description
There’s a new choice for implementing APIs – the open source and Facebook-created GraphQL specification. Designed to solve many of the issues of working with REST, GraphQL comes alongside RelayJS, a React library for querying a server that implements the GraphQL specification. This book takes you quickly and simply through the skills you need to be able to build production ready applications with both GraphQL and RelayJS.
Beginning with a solid foundation in the GraphQl specification, this book swiftly moves to how a data layer can be implemented for your web application using Relay. Get to grips with GraphQL and Relay concepts creating data containers, data masking, and more as your progress towards building a production-ready application.
What you will learn
- Understand what problem GraphQL solves and how it differs from traditional REST architectures
- Create a GraphQL server
- Develop modular and maintainable GraphQL code
- Grasp how to define GraphQL mutations
- Comprehend how to define GraphQL queries
- Modify a GraphQL server to be Relay-compliant
- Develop a Relay client-side application with ReactJS that consumes a GraphQL endpoint
About the Author
Samer Buna is a technical content author, software engineer, and mentor. He has a master's degree in information security and over ten years of progressive experience and success creating tailored solutions for businesses within many industries.
Samer is passionate about everything JavaScript, and he loves exploring new libraries. His favorite technical stacks are Node.js for the backend and React.js for the frontend.
Samer has authored a few books and online courses about React and GraphQL. You can follow him on Twitter at @samerbuna, and you can read more of what he writes at https://edgecoders.com/.
Table of Contents
- An Introduction to GraphQL and Relay
- The Query Language
- The GraphQL Schema
- Configuring React Applications to Use Relay
- Making GraphQL Queries Relay-Compliant
- Relay Variables and Object Identification
- Relay Mutations
- Deploying to the Cloud
商品描述(中文翻譯)
主要特點
- 使用 GraphQL 和 Relay 將您的 React 應用程式提升到新水平
- 探索數據獲取、數據處理等概念
- 學習如何部署符合 GraphQL 和 Relay 的應用程式
書籍描述
實現 API 有了一個新的選擇——開源且由 Facebook 創建的 GraphQL 規範。GraphQL 設計用來解決許多使用 REST 時遇到的問題,並與 RelayJS 一起使用,這是一個用於查詢實現 GraphQL 規範的伺服器的 React 庫。本書將快速且簡單地帶您掌握使用 GraphQL 和 RelayJS 構建生產就緒應用程式所需的技能。
本書從 GraphQL 規範的堅實基礎開始,迅速轉向如何使用 Relay 為您的 Web 應用程式實現數據層。隨著您朝著構建生產就緒應用程式的進展,掌握 GraphQL 和 Relay 概念,創建數據容器、數據遮罩等。
您將學到什麼
- 了解 GraphQL 解決了什麼問題,以及它與傳統 REST 架構的不同之處
- 創建一個 GraphQL 伺服器
- 開發模組化和可維護的 GraphQL 代碼
- 掌握如何定義 GraphQL 變更
- 理解如何定義 GraphQL 查詢
- 修改 GraphQL 伺服器以符合 Relay 標準
- 使用 ReactJS 開發一個消耗 GraphQL 端點的 Relay 客戶端應用程式
關於作者
Samer Buna 是一位技術內容作者、軟體工程師和導師。他擁有資訊安全碩士學位,並在多個行業中擁有超過十年的漸進式經驗和成功,為企業創造量身定制的解決方案。
Samer 對 JavaScript 的一切充滿熱情,並喜歡探索新的庫。他最喜愛的技術堆疊是 Node.js 作為後端和 React.js 作為前端。
Samer 已經撰寫了幾本關於 React 和 GraphQL 的書籍和線上課程。您可以在 Twitter 上關注他 @samerbuna,並可以在 https://edgecoders.com/ 閱讀他更多的文章。
目錄
- GraphQL 和 Relay 簡介
- 查詢語言
- GraphQL 架構
- 配置 React 應用程式以使用 Relay
- 使 GraphQL 查詢符合 Relay 標準
- Relay 變數和物件識別
- Relay 變更
- 部署到雲端