246

JSJ 246 GraphQL and Apollo with Uri Goldshtein


GraphQL and Apollo with Uri Goldshtein

On today's episode, Charles Max Wood and Aimee Knight discuss GraphQL and Apollo with Uri Goldshtein. Uri is a core developer at Meteor Development Group, and is an expert with GraphQL and Apollo.

What is GraphQL?

GraphQL is a query language that you can use for your API. With it, you can query data from the client to the server or from the service to the server.

In contrast to REST (Representational State Transfer), GraphQL allows you to specify what you want to query and it'll give you exactly what you want. It's similar to a JSON object as well. The good thing when you query using the same structure is that you get the same structure back.

Difference Between GraphQL and REST

REST and GraphQL differ on certain aspects. With REST, the server decides the fields for which you query. It offers a number of round trips before you get the result.

There are two options that REST provides. First is to query the broader data first, and second is to query the more specific information about it afterwards. With GraphQL, however, you get to decide the data you want and then get it in the same structure.

Interesting Facts About GraphQL

GraphQL uses the same approach as REST. It runs regardless of the technology being used. Another interesting about GraphQL is that it uses a type system for your API. Each field in GraphQL is type, thus, enabling you to expect the exact results. It gives you control over what could come out.

To hear the rest of GraphQL and Apollo with Uri Goldshtein, download and listen to the entire episode.

If you’re short on time, here are the highlights of GraphQL and Apollo with Uri Goldshtein:

What is GraphQL? (1:27)

Difference between GraphQL and REST? (4:41)

What is GraphQL first? (13:40)

Difference between Relay and Apollo? (23:43)

How to run GraphQL on a browser? (35:27)

Apollo example? (44:15)

Thanks for listening to this weeks’ episode of Javascript Jabber GraphQL and Apollo with Uri GoldshteinHave something to share or a question, feel free to leave a comment below!

This week’s Javascript Jabber picks:

Aimee: Crypto 101

Charles: Star Wars Rogue One, The Power Consumption for the Death Star

Uri: The 4-Hour Workweek and Tools of Titans by Tim Feriss

Episode Links:

GraphQL.org

Apollodata.com

This episode is sponsored by

comments powered by Disqus
x
New to Programming? Learn to build a career at Newbies Remote Conf
x