Fullstack GraphQL is the complete guide to building servers and clients with GraphQL.

  • Build Robust, Safe, and Flexible APIs with GraphQL

    GraphQL changed the way data is transferred between applications.

    As you will work through this book, we hope you won't just add GraphQL to your toolbox, but also develop a new way of thinking about data models, APIs, and full-stack development.

    GraphQL - and it's huge ecosystem - give you tools to create and consume flexible, easy-to-use, type-safe APIs.

    Usage Driven: It encourages users to define queries that specify what data to fetch in a granular way.

    Intuitive: GraphQL delivers you only the data that you request, in the exact format that you requested

    Self-descriptive: GraphQL schemas are strongly typed and define a strict contract between a query and its response.

    GraphQL embodies many lessons learned from API design that enforces several best practices into one solution, and in Fullstack GraphQL we show you how to use these tools with practical code-driven examples.

    What's in the book

    Fullstack GraphQL is the busy engineer's guide to building real-world GraphQL servers and clients with examples in Node.js, React, TypeScript, and Apollo.

    1How to write GraphQL Schemas
    2How to write flexible APIs with GraphQL and Node.js
    3How to generate TypeScript types from your GraphQL types - for type-safe code that matches your API
    4How to use an ORM to automatically generate your GraphQL API
    5How to setup authentication and authorization for your API
    6How to use Apollo Client with Hooks in your React app
    7How to use GraphQL developer tools
    8How to optimize your GraphQL server fetching with DataLoader
    9How to paginate queries and write efficient pagination resolvers
    10How to modify data with Mutations

    Our students work at

    👋 Hey there! I'm Gaetano, a co-author of this book

    I'm a Software Architect and Entrepreneur from London. I've been a consultant for adopting React and GraphQL in companies like The Times, YLD, and others.

    I've encountered tons of real-world challenges implementing GraphQL in the real-world and I've condensed my learnings down into this book.

    👋 Hi! I'm Roy, the other co-author of this book

    I lead engineering teams at Vandebron and teach folks how to use React and GraphQL through conference speaking and writing.

    Implementing a flexible, optimized GraphQL server is tricky, but in this book, I'll show you how.

    Table of Contents

    • Why GraphQL?1
    • Usage-driven-fetching 
    • Comparison vs. REST APIs 
    • Hello GraphQL2
    • Using the Playground 
    • First GraphQL Queries 
    • Basic GraphQL App Clients3
    • GraphQL in Node.js 
    • GraphQL in React 
    • Apollo Client and React4
    • Setting up Apollo 
    • React Apollo Hooks 
    • Typescript and GraphQL5
    • graphql-codegen 
    • Building queries and mutations 
    • GraphQL Server and Databases6
    • Handling pagination 
    • Mutation resolvers 
    • Caching and batching7
    • Optimized queries 
    • Batching with DataLoader 
    • TypeORM and TypeGraphQL8
    • Setting up the ORM 
    • Writing resolvers 
    • Authentication and Authorization9
    • Using JWT 
    • Resolver authentication 

    Purchase the book today

    Fullstack GraphQL
    Instantly download the complete book and code examples
    $40 $59
    • 📕 PDF, EPub, and Mobi
    • 👩‍💻 Completed code
    Every book in the newline library with newline Pro
    Get access to Fullstack GraphQL and every other book in the newline collection
    $22/mo $30/mo
    Learn more about the benefits of newline Pro
    • 📚 Access to every book
    • 👨‍👩‍👧‍👦 All code projects
    • 👫 Access to our community

    I'm wondering...

    What happens after I buy the book?

    If you subscribe to newline Pro you'll be able to read Fullstack GraphQL and a dozen other books online. If you buy through Gumroad, you'll also receive an email from Gumroad giving you instructions on how to download it.

    Is the book complete?

    Yes

    Do I have to know JavaScript already?

    Yes, we assume you know the basics of programming in JavaScript, however you don't need to be super advanced. We talk through how the types work in detail

    Are there free updates?

    Yes! Buying now entitles you to free updates for at least one year after purchase

    How do I download the book and updates?

    If you've purchased the book through Gumroad, you can download it from your Gumroad library. You can also read the book online if you are part of our Pro plan

    What if I don't like it?

    If you're unhappy with the book for any reason, just reach out to us and we'll give you a full refund. There's no risk.