January 23, 2023

Apollo Changelog: Jan 23, 2023

Dylan Anthony

Dylan Anthony

We’re building so much great stuff at Apollo that it can be tricky to keep track of it all! To help with that, we’re kicking off our Changelog series to cover exciting releases for GraphOS and our open-source projects. We’ll also let you know about upcoming live events and new educational content to help you expand and sharpen your graph expertise. So without further ado, let’s see what’s new!

Boost app responsiveness with @defer in GraphOS

If a query includes a field that takes a long time to resolve, it can delay your graph’s entire response, making your apps feel less responsive. With GraphOS support for the @defer directive (now generally available!), your graph can respond to the client with most of the response data almost immediately, then follow up with slower fields when they’re ready.

To learn more, check out the announcement blog post and the docs. Make sure to set your graph’s federation version to 2.1 or higher in Apollo Studio!

An animation shows the process of switching the federation version to 2.1 in Apollo Studio. First, click settings, then "Edit Configuration", then change the "Supergraph Pipeline Track" to "Federation 2.1 (default)". Finally, click "Save".

Livestreams with library maintainers

This week we kicked off a new livestream series in the Apollo GraphQL Discord where maintainers and community experts demonstrate building subgraphs with different libraries and languages. To start, we built a subgraph live using Python and Strawberry. Next up, we’ll do the same with Rust and async-graphql on February 22. All of our livestreams are in Discord, so make sure to join so you don’t miss out!

GraphOS introduction video

Your graph’s README page in GraphOS Studio now features a friendly introductory video and some handy links to help you get the most out of GraphOS from day one! Look for this section to the right of your README:

A screen shot of a section of Apollo Studio titled "New to GraphOS Studio?". It says "Check out a few quick tips and links from the Apollo team, designed to get you up and running." There is then a still of a video showing Apollo studio, followed by three links: "Get to know your supergraph", "Automate tasks with Rover CLI", and "Build custom tools with the GraphOS Platform API".

Keeping you in suspense

Can’t wait to use React 18’s Suspense feature when fetching data with your GraphQL queries? Try our new useSuspenseQuery hook today with Apollo Client 3.8.0-alpha.5. Install it with npm i @apollo/client@alpha, then check out the RFC for more details. We can’t wait to hear your feedback!

Rapid roundup

Here are a few more changes and version updates you might want to check out:

Performance corner

Are you using data loaders in all of your graph’s resolvers? If you aren’t yet, learn all about handling the N+1 problem.

That’s all for now! We’ll be back soon with another update. In the meantime, join our Discord server to stay up to date with future programs and announcements. That’s also where you can give us feedback on this new format and request changes or additions. Happy querying!

Written by

Dylan Anthony

Dylan Anthony

Read more by Dylan Anthony