Graphql in Action (Paperback)

Buna, Samer

  • 出版商: Manning
  • 出版日期: 2021-06-07
  • 定價: $1,730
  • 售價: 9.0$1,557
  • 語言: 英文
  • 頁數: 375
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 161729568X
  • ISBN-13: 9781617295683
  • 相關分類: Web API
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

相關主題

商品描述

GraphQL in Action gives you the tools to get comfortable with the GraphQL language, build and optimize a data API service, and use it in a front-end client application.

Summary
Reduce bandwidth demands on your APIs by getting only the results you need--all in a single request The GraphQL query language simplifies interactions with web servers, enabling smarter API queries that can hugely improve the efficiency of data requests. In GraphQL in Action, you'll learn how to bring those benefits to your own APIs, giving your clients the power to ask for exactly what they need from your server, no more, no less. Practical and example-driven, this book teaches everything you need to get started with GraphQL--from design principles and syntax right through to performance optimization.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the technology
GraphQL APIs are fast, efficient, and easy to maintain. They reduce app latency and server cost while boosting developer productivity. This powerful query layer offers precise control over API requests and returns, making apps faster and less prone to error.

About the book
GraphQL in Action gives you the tools to get comfortable with the GraphQL language, build and optimize a data API service, and use it in a front-end client application. By working through set up, security, and error handling you'll learn to create a complete GraphQL server. You'll also unlock easy ways to incorporate GraphQL into your existing codebase so you can build simple, scalable data APIs.

What's inside

Define a GraphQL schema for relational and document databases
Implement GraphQL types using both the schema language and object constructor methods
Optimize GraphQL resolvers with data caching and batching
Design GraphQL fragments that match UI components' data requirements
Consume GraphQL API queries, mutations, and subscriptions with and without a GraphQL client library

About the reader
For web developers familiar with client-server applications.

About the author
Samer Buna has over 20 years of experience in software development including front-ends, back-ends, API design, and scalability.

Table of Contents

PART 1- EXPLORING GRAPHQL

1 Introduction to GraphQL

2 Exploring GraphQL APIs

3 Customizing and organizing GraphQL operations

PART 2 - BUILDING GRAPHQL APIs

4 Designing a GraphQL schema

5 Implementing schema resolvers

6 Working with database models and relations

7 Optimizing data fetching

8 Implementing mutations

PART 3 - USING GRAPHQL APIs

9 Using GraphQL APIs without a client library

10 Using GraphQL APIs with Apollo client

商品描述(中文翻譯)

《GraphQL in Action》提供了使用GraphQL語言的工具,幫助您熟悉GraphQL語言,構建和優化數據API服務,並在前端客戶端應用程序中使用它。

簡介:
通過僅在一個請求中獲取所需結果,減少對API的帶寬需求。GraphQL查詢語言簡化了與Web服務器的交互,使得API查詢更加智能化,可以極大地提高數據請求的效率。在《GraphQL in Action》中,您將學習如何將這些優勢應用於自己的API,使您的客戶端能夠從您的服務器中精確地獲取所需的數據,不多不少。這本實用且以實例驅動的書籍將教授您從GraphQL的設計原則和語法到性能優化所需的一切知識。

購買印刷版書籍還包括Manning Publications提供的PDF、Kindle和ePub格式的免費電子書。

關於技術:
GraphQL API快速、高效且易於維護。它們減少了應用程序的延遲和服務器成本,同時提高了開發人員的生產力。這個強大的查詢層提供了對API請求和返回的精確控制,使應用程序更快且更不容易出錯。

關於本書:
《GraphQL in Action》提供了使用GraphQL語言的工具,幫助您熟悉GraphQL語言,構建和優化數據API服務,並在前端客戶端應用程序中使用它。通過設置、安全性和錯誤處理的工作,您將學習創建完整的GraphQL服務器。您還將解鎖將GraphQL輕鬆整合到現有代碼庫中的方法,以便構建簡單、可擴展的數據API。

內容概要:
- 為關聯和文檔數據庫定義GraphQL模式
- 使用模式語言和對象構造方法實現GraphQL類型
- 通過數據緩存和批處理優化GraphQL解析器
- 設計與UI組件數據要求相匹配的GraphQL片段
- 使用和不使用GraphQL客戶端庫消耗GraphQL API的查詢、突變和訂閱

讀者對象:
熟悉客戶端-服務器應用程序的Web開發人員。

作者簡介:
Samer Buna在軟件開發方面擁有超過20年的經驗,包括前端、後端、API設計和可擴展性。

目錄:
第1部分-探索GraphQL
1. GraphQL簡介
2. 探索GraphQL API
3. 自定義和組織GraphQL操作

第2部分-構建GraphQL API
4. 設計GraphQL模式
5. 實現模式解析器
6. 使用數據庫模型和關聯
7. 優化數據提取
8. 實現突變

第3部分-使用GraphQL API
9. 在沒有客戶端庫的情況下使用GraphQL API
10. 使用Apollo客戶端使用GraphQL API

作者簡介

Samer Buna has over 20 years of experience in software development including front-ends, back-ends, mobile apps, API design, databases, and scalability. He operates jsComplete.com.

作者簡介(中文翻譯)

Samer Buna 在軟體開發領域擁有超過 20 年的經驗,包括前端、後端、行動應用程式、API 設計、資料庫和可擴展性。他經營著 jsComplete.com。