Table of Contents
Preface
Part 1 - Why GraphQL?
1
Unveiling the Holy Grail of Communication – GraphQL
Technical requirements
Understanding the advantage of built-in introspection
Working with GraphQL as a source of truth
Understanding the source of truth
Example project – book library
Creating self-documenting schemas
Custom scalars
Directives
Fields
Enums
Unions
Interfaces
Inputs
Understanding the GraphQL query language
Fragments
Aliases
Arguments
Variables
Directives
Response format
Workarounds for input unions
Mocking GraphQL responses
Summary
2
Applying an AI-Friendly Approach to GraphQL
Technical requirements
Understanding GraphQL AI Friendliness
Navigating the OpenAI playground
Generating documentation with AI
Generating real-life mocks ...
Get GraphQL Best Practices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.