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.
Our students work at
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
- PDF, EPub, and Mobi
- Completed code
- 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.