Learning GraphQL and Relay

Samer Buna

  • 出版商: Packt Publishing
  • 出版日期: 2016-08-29
  • 售價: $1,500
  • 貴賓價: 9.5$1,425
  • 語言: 英文
  • 頁數: 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

  1. An Introduction to GraphQL and Relay
  2. The Query Language
  3. The GraphQL Schema
  4. Configuring React Applications to Use Relay
  5. Making GraphQL Queries Relay-Compliant
  6. Relay Variables and Object Identification
  7. Relay Mutations
  8. Deploying to the Cloud

商品描述(中文翻譯)

主要特點

  • 使用GraphQL和Relay將您的React應用程序提升到新的水平
  • 探索數據提取、數據處理等概念
  • 學習部署符合GraphQL和Relay的應用程序

書籍描述

現在有一個新的選擇來實現API - 開源且由Facebook創建的GraphQL規範。GraphQL旨在解決使用REST時遇到的許多問題,並且與RelayJS一起使用,RelayJS是一個用於查詢實現GraphQL規範的服務器的React庫。本書將快速且簡單地帶您掌握使用GraphQL和RelayJS構建生產就緒應用程序所需的技能。

從對GraphQL規範的扎實基礎開始,本書迅速轉向如何使用Relay為Web應用程序實現數據層。隨著您進一步建立生產就緒應用程序,深入了解GraphQL和Relay的概念,創建數據容器、數據遮罩等。

您將學到什麼

  • 了解GraphQL解決了哪些問題,以及它與傳統REST架構的區別
  • 創建GraphQL服務器
  • 開發模塊化且易於維護的GraphQL代碼
  • 掌握如何定義GraphQL突變
  • 理解如何定義GraphQL查詢
  • 修改GraphQL服務器以符合Relay規範
  • 使用ReactJS開發Relay客戶端應用程序,該應用程序使用GraphQL端點

關於作者

Samer Buna是一位技術內容作者、軟件工程師和導師。他擁有信息安全碩士學位,並且在許多行業為企業創建定制解決方案的經驗超過十年。

Samer對JavaScript的一切都充滿熱情,他喜歡探索新的庫。他最喜歡的技術堆棧是後端使用Node.js,前端使用React.js。

Samer撰寫了幾本關於React和GraphQL的書籍和在線課程。您可以在Twitter上關注他的帳號@samerbuna,並且您可以閱讀他在https://edgecoders.com/上的更多文章。

目錄

  1. GraphQL和Relay簡介
  2. 查詢語言
  3. GraphQL模式
  4. 配置React應用程序以使用Relay
  5. 使GraphQL查詢符合Relay規範
  6. Relay變量和對象識別
  7. Relay突變
  8. 部署到雲端