58: Eve Porcello on Learning GraphQL
This week we talk with Eve Porcello about getting started with GraphQL.
She is the co-author of Learning React and Learning GraphQL. She travels the world with husband Alex Banks teaching JavaScript and telling jokes.
We talk about comedy and code and how to engage audiences with a little bit of funny.
This is a great episode if you want to add a little GraphQL to your stack or learn how to give a hilarious conference talks.
Featuring
Links
- GraphQL Query Language — Eve's new egghead.io course on GraphQL
- Learning React: Functional Web Development with React and Redux — Eve's React Book
- Learning GraphQL: Declarative Data Fetching for Modern Web Apps — Eve's GraphQL book
- Moon Highway — Eve and Alex's training company
- Everything You Need to Know About GraphQL in 3 Components — React Rally 2018 talk... the one with the tattoo bit
- Apollo Server — the best way to quickly build a production-ready, self-documenting API for GraphQL clients, using data from any source
- apollo-link-rest — Call your REST APIs inside your GraphQL queries
- Mocking — Apollo Docs — Mock your GraphQL data based on a schema
- SWAPI GraphQL API — The one you're obligated to make your first request to
- GitHub GraphQL v4 API
- GitHub GraphQL Explorer
- OneGraph
- Apollo Federation
- ReactJS Girls Conference, Twitter, and videos
- Reactathon
Sponsors
GitPrime
GitPrime turns historical git data into easy-to-understand insights and reports that help engineering teams succeed. gitprime.com
Transcript
[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. This week we talk with Eve Porcello about getting started with GraphQL. She's the co-author of Learning React, Learning GraphQL, and travels the world with husband Alex Banks teaching JavaScript and telling jokes. We talk about comedy in code and how to engage audiences with a little bit of funny. This is a great episode if you you want to add a little GraphQL to your stack or learn how to give a hilarious conference talk. Before we dive in, I want to take just a minute and thank our sponsor, Git Prime. Git Prime has a book they want to give you. It's called 20 Patterns to Watch for in Your Engineering Team. It will help you identify and fix failing engineering strategies like code hoarding, bit twiddling, and unusually high churn. Now I hear you, you might be thinking this sounds like a book for managers. And to that I say, no, this is a book for leaders and you, my friend are a leader. There's been a lot of internet chatter about being a 10x dev the past couple weeks, most of it nonsense, but I can tell you one thing that always makes you a more valuable contributor: the ability to communicate well and identify bottlenecks. If you want to level up, read this book. It is a spotlight on the issues your team is facing, and you'll look like a natural leader as you address those issues and improve effective collaboration. Visit gitprime.com/20patterns. That's the number 20 patterns for your free copy. Then when everyone is asking what your secret is, give GitPrime a try and see these insights in a beautiful dashboard. GitPrime. Engineers build business. Hello, Eve. Welcome to React Podcast.
[00:01:54] Eve Porcello: Hey, thanks so much for having me.
[00:01:55] Michael Chan: I am very excited to have you. Um, just to start. I feel like everyone does their own personal intros a little bit better than I could. Um, give us the 411 on you. What are you up to these days? What's the what's the now on Eve?
[00:02:08] Eve Porcello: What's the now? Uh, well, we're working on a second edition of our Learning React book right now. So, that first one, it's not holding up so hot with all the new changes. So, it's uh really exciting to go back through and rewrite everything and All the code samples are getting really tightened up because of Hooks and it's a really exciting time. Um, and then we're just working on GraphQL training. So, um, my husband Alex Banks and I work for our own company, Moon Highway. We teach a lot of GraphQL and React and JavaScript classes. So, we're out touring around and spreading the good word about GraphQL.
[00:02:48] Michael Chan: Awesome. Now, do you get to do that together?
[00:02:51] Eve Porcello: We do, yeah.
[00:02:52] Michael Chan: Awesome.
[00:02:54] Eve Porcello: About 7 years ago, we moved to Tahoe and there are no jobs here. And so, he's been wanting me to work with him for like 12 years now and I finally broke at one point and we do all of our work together. So, it's worked out really well and been a lot of fun. So, yeah.
[00:03:09] Michael Chan: So, I have a question about uh authoring a book. Now, I know a lot of times there's kind of these like these guidelines for how big a book should be. When you write a book like Learning React and then, you know, 16.8 comes out and hooks make everything like half as big, um, do you have to just like come up with random new content to fill up the the page count? Or like, do they they give you a pass on that kind of stuff?
[00:03:33] Eve Porcello: I think we're getting a pass on that kind of stuff. Our first our first book was 350 pages, which is pretty long. So, a shorter version of that book is probably like, that'll do fine. So, um, yeah, it's- O'Reilly has been really awesome as a publisher because they kind of trust us to make the right decisions about what goes in there and what is too long, what is too short. So, not a whole lot of, uh, adherence to rules on that, so that's good.
[00:04:03] Michael Chan: Do you find that you, um, still have to cover some of the same patterns, or are you just kind of going all in on, on hooks?
[00:04:11] Eve Porcello: Uh, we're pretty much going all in on hooks. We are pointing out when introducing like state concepts and things like that, that there was this old way of doing things in the past, um, just in case people are like in the real world getting into codebases that have a class. So, we don't want people to feel hung out to dry if they're reading this book. Like, what is this? I thought I was gonna learn React. You didn't tell me. So, we're pointing it out.
[00:04:37] Michael Chan: New hotness only.
[00:04:38] Eve Porcello: Exactly. So, we're pointing it out like a historical tour of what was part of our history as React developers, our storied history, but mainly getting into hooks. So, yeah, it's cool.
[00:04:51] Michael Chan: Awesome, awesome. Well, I have to say, I um I I know that we're not gonna be able to cover all of the the things, Eve, in this uh in in this short period of time together, which just means we'll have to do this again, uh because you have so many things that you're doing. Um but you're actually a fun a really fun person to research. 'Cause I was, I always like to spend like, you know, like an hour or so before a call, just kind of like getting reacquainted with a person. Maybe there's some talks that I haven't like seen of theirs or whatnot. And, um, and Nellie, my, my wife was, was looking at me like, are you like watching some kind of like Netflix, like comedy special without me, like on your phone right now? 'Cause I was just, I was just cracking up. I find you so funny. Like you have the, the brand of humor that just goes right right to me. Um, so I wanted to ask, did you have um like a past in like comedy or like drama or anything like that before you came to programming?
[00:05:49] Eve Porcello: Uh, first of all, thank you. That's very nice. And uh, yes, I do. So, I went to college in Chicago, which was just like getting myself to move away from Michigan so that I could go do comedy. Uh, and go to improv class basically and attend college on the side sort of. So, um, yeah, that's my background. I lived in Chicago for a long time and did comedy and sketch and improv and things like that. Um, and that's where I met my husband Alex actually, who- Oh, nice. Was a programmer at that time, but um, also did shows all the time. And so, yeah, as we started getting into this, um, this world of conferences and things like that, we have this background that we kind of just incorporate because that's what we know how to do. So yeah, um, that's like how we rehearse things is like rehearsing old sketch bits from a long, long time ago. So yeah, we definitely- that's what we really, uh, love to do. And then we love teaching, so it kind of all fits together pretty well.
[00:06:56] Michael Chan: That's so awesome. It gives such a unique flair and character to all of your talks because I think some people are are funny And sometimes programming is like just funny by its like very nature. Um, but there's something like so different about the way that that you approach the humor to your talks and it feels very kind of like controlled and knowledgeable and I I I'm I'm here for it 100%.
[00:07:20] Eve Porcello: Cool. Thank you.
[00:07:21] Michael Chan: What what did uh what did improv classes and comedy classes look like when you were taking them?
[00:07:27] Eve Porcello: Uh, let's see. I Chicago is like ground- like such a hub of comedy. Oh yeah. And so there are a million different schools that you can go to and very organized programs for like taking people's money to get them to be the funniest person at their office and that sort of thing. So uh we just- I just went through several programs at Second City and Improv Olympic there and learned how to, I don't know, learn how to write, learn how to improvise, and learned how to um perform under really bad conditions. So I can handle a tech audience pretty well, 'cause even if they're super bored at the beginning of what I'm doing, it's better than people who are like really drunk and it's 1 in the morning or things like that.
[00:08:20] Michael Chan: Expecting you to make them laugh.
[00:08:22] Eve Porcello: Exactly. So nothing could be as bad as that. So.
[00:08:26] Michael Chan: Yeah. What is- is there anything for for those of us that aren't very good at like delivering a joke, is there something that everyone across the board gets wrong in joke formation?
[00:08:38] Eve Porcello: Oh, wow. Um, gets wrong about joke formation. I I don't know. I think in preparing for these talks, um, just preparing is huge. Like not just trying to wing it necessarily with uh what you're trying to do, because People aren't necessarily looking to watch, I don't know, too much. So just taking it too far, being too needy, not it having a feeling that- I'm not answering this question particularly well. There's no such thing as a bad joke. Just go for it. Have confidence and just believe in your own joke even if other people don't because they're not all gonna work.
[00:09:19] Michael Chan: I think I think you touched on the thing that I'm I'm I'm personally after is like something that I enjoyed about like all of your, all of your jokes is just kind of like they're out there. Like for me, it's like I always feel like if I try a joke, like I just like I'm hanging on that joke, right? And it's like, it's so demoralizing if it doesn't land. Like I just, I wanna like curl up and die and like stop giving the talk. And like yours are always just like, eh, if it's for you, it's for you. Yeah. It's funny to me.
[00:09:48] Eve Porcello: Yeah, totally. And I stand in front of classrooms of people for like 8 hours, so a lot of my jokes aren't funny and people don't laugh, but you just have to- you just have to be there. You just have to go through it. If they don't like it, it's fine. There'll be another joke and they'll probably be on your side. So-
[00:10:06] Michael Chan: They'll laugh at that one. Yeah. You're just laying the groundwork.
[00:10:10] Eve Porcello: Exactly. Exactly.
[00:10:12] Michael Chan: So how did that bring you, or uh I guess prepare you for for teaching?
[00:10:17] Eve Porcello: Uh, I think it's helped with um just presentation skills. Uh, when preparing for these conference talks, we run through them like they are rehearsals and uh really, really like hammer all these jokes and go through everything a million times, and that rehearsal process has really stuck with me. It's something I like to skip because I'm Uh, I feel like, oh, it'll be fine, I got it. But that's never true. I always need to spend more time than I think just running through things. So the rehearsal process as well as just like, um, some little improv tricks, like raising the stakes. Um, just, I don't know, the React Rally talk, I pretended to be drunk in the street and like no one would say like, you should definitely start a tech talk like that. Um, and that's really dumb. But that's high stakes and that's having a point of view that is at least compelling. Even if people don't think it's funny, they're like, "What is she doing?" And they might want to listen longer. So it's just, I don't know, going for it I think is really like the takeaway from that time.
[00:11:37] Michael Chan: That is interesting because I would never I would never go that far into a joke because You know, it's like, I, I like when you did that, you did the JavaScript function. So I watched that talk. It's great. I absolutely recommend it. You do the JavaScript function. I'm like, oh, that's funny. Like that's the joke. And then it's like picture after picture of like, like you going and getting progressively like drunker and then like getting a tattoo and then like the, the npm install. Like I was like, this is, this is so much further than I would ever take anything really.
[00:12:06] Eve Porcello: Yeah. So I don't know if that's a good or a bad piece of advice, but if you do have an idea, um, it's a good idea just to, um, just to go for it. Just go for it. And believe in it. And not everyone is gonna be a fan, but
[00:12:22] Michael Chan: yeah,
[00:12:23] Eve Porcello: the people who are will be happy that you did that. So, yeah.
[00:12:28] Michael Chan: Do your classes, um, take on a similar, uh, similar air, like kind of a lot of mixture of, you know, funny and programming?
[00:12:37] Eve Porcello: Uh, yeah, I think we really want- like, the funny parts of what we do, um, hopefully have a point, um, and they're to engage people and make people feel welcome and make them feel like, all right, I'm out of work for a whole day, I want this to be worth it. I have so many tickets piling up of things I need to do, and I have a life I need to get back to, but, um, we feel like our classes should be like a break from that, where you really get to focus on learning something new, but also you get to- yeah, you should be having fun. So we try to, with some apps that we have for managing the classroom, get people really engaged from the beginning. And ever since we started doing that sort of thing, people are like, "Alright, I'm on board." Most people. I shouldn't say everyone, that's so- that's so wrong.
[00:13:32] Michael Chan: Nothing's for everyone.
[00:13:33] Eve Porcello: Nothing's for everyone. But I think I think uh getting people involved is a good way of- particularly when people are coming from different offices to like a public workshop or something like that. We want people to feel like, wow, this is gonna be really fun today. And I'm gonna learn stuff. And it's not gonna be a waste of my time. So, I think that helps.
[00:13:53] Michael Chan: Awesome. What are what are you currently teaching? What are the topics that you're teaching with Moon Highways?
[00:13:58] Eve Porcello: So, we're teaching a lot of GraphQL. We have a 2-day GraphQL workshop. That we are teaching at a lot of companies and through a public format as well. Um, that's just a full-stack look at building uh GraphQL applications with JavaScript. So, everything you need to know to really build some cool stuff. Uh, we also are working on a new edition of our React workshop just to kind of go along with our book. 'Cause that's extremely out of date, as is our first book. Sure. So, it's time to get that back out in front of people as well. We also teach a lot of corporate workshops to folks who aren't familiar with JavaScript. Uh, people who come from a different background, a backend programming background, or who are just brand new to programming, and we try to get them hooked on JavaScript in like a day or two. So, um, that's kind of where a lot of our teaching started, and that's what we continue to like to do. Because we like JavaScript and we want to we want to get people interested. So.
[00:15:05] Michael Chan: I love it. Now, you have a talk, um I think it was at React Rally maybe last year? Was it the um uh GraphQL and Three Components?
[00:15:13] Eve Porcello: Yeah.
[00:15:14] Michael Chan: Awesome. Okay. So, what is the— oh, yeah, that was the that was the talk where you you started off with the the drunk tattoo bit.
[00:15:20] Eve Porcello: There was a point eventually, yes, later on.
[00:15:24] Michael Chan: So, for those who have uh For everyone kind of like interested in getting started with GraphQL, could you give us just the elevator pitch on like how easy it is to start in a React app?
[00:15:35] Eve Porcello: So, GraphQL is a uh query language for your API. So, it allows you to write queries to get some data um from uh all sorts of different places. So, what's really cool about GraphQL is it's not just uh gonna get data from a database. A lot of folks associate it with a new SQL or something like that. Instead, it's a new way of requesting data from all sorts of different sources. So if you're writing React applications, if you're a client-side developer, um you probably will like GraphQL a lot because you're going to be able to get data from all of these different sources and load it into um all of your user interfaces that you're building. So Uh, if you're using something like Relay or Apollo Client, you can uh take advantage of all of this awesome new React syntax to really uh to really get data from all of these different sources and uh be able to build applications quickly. So that's the thing I think folks misunderstand sometimes about GraphQL. It's like, is this uh is this just for databases or is this just for something else? It's really an organization layer that you can put on top of all of your different data sources. And then you can get exactly the data you want. So, um, this gives the client-side developers a whole lot of control when it comes to that data.
[00:17:04] Michael Chan: That's that's really interesting. And this this is something that I think is hard to communicate because I it's it's been very difficult for me to kind of like grasp this concept. And it wasn't until I started playing with Gatsby that I was like, oh, like Gatsby is just using GraphQL to query the file system, which is weird. But like that's like kind of like the point where like my my brain broke a little bit in just the right ways to kind of get it in some ways.
[00:17:28] Eve Porcello: Yeah.
[00:17:28] Michael Chan: Um, so, so you could use GraphQL as like your single endpoint to wrap like your existing REST API. Is that correct?
[00:17:38] Eve Porcello: Absolutely. And that's uh that's typically the way that people get started. Because A lot of organizations have a great REST structure set up already, and it's like, why would I want to tear this whole thing down to adopt something new like GraphQL? And the reason that people use GraphQL and REST together is you can put GraphQL on top of those as a gateway, and then you can query the GraphQL API, that single endpoint. The endpoint has a bunch of functions that are gonna go get the data from wherever it lives. So That could be all of your thousands of REST endpoints. That could be uh an authentication server that you've created. That could be a JSON file. That could be a database. So, it's not very specific about where that data lives. GraphQL just provides that organization layer for um all of those APIs. And a lot of companies have done that and they've had a lot of like a lot of wins from that. 'Cause it's like, oh, this finally makes sense again. And we have some documentation and we know where all this data is coming from.
[00:18:41] Michael Chan: Now I know that sometimes it can be easy to get set up with the, uh, you know, the Apollo Client or Relay, maybe not so much Relay in terms of ease, but, um, they're, they're good clients in terms of mapping to React. Um, what is like the, the easiest way to get up and running with like a GraphQL server? Like let's say you have a REST endpoint or you have REST endpoints already and you just want to set up like a tiny little GraphQL server to try it out. Like what are some products that kind of make that part of it like really easy to give it a try and see how it feels?
[00:19:15] Eve Porcello: Yeah. Um, if you're using Node already, um, if you have a even a basic command of Node, you can get started with Apollo Server. Apollo Server will allow you to write a schema, define all of the types, and then write resolver functions that go get the data from those data sources. Um, Apollo also has another product called REST data sources, which um is what it sounds like. Where um you actually create— um you are you create a server that literally just plugs into all of these REST data sources. And that's a really cool thing too. I'd probably get started with Apollo Server though, because in about 10 lines of code, you can be up and running with a server.
[00:19:57] Michael Chan: Oh, crazy.
[00:19:58] Eve Porcello: And it's pretty pretty awesome. So, another cool thing about Apollo Server is let's say you kind of have a sense of what your types are. So, you have a user and you have uh um maybe a photo or something like that. You can create a server. You can create a server that has a schema. And then Apollo Server, you can say mocks equals true and it'll mock all the data for you.
[00:20:25] Michael Chan: Oh, crazy. Because it knows the types.
[00:20:27] Eve Porcello: Exactly. Oh, that's amazing. It'll know what a string is. It'll know what an ID is, all those types of things. You can customize that a little bit with things like Casual or Faker or any sort of um fake data generator type thing. But you are getting with GraphQL a type system for your API. Yeah. And that's something that we really um like to talk about a lot 'cause that's pretty cool. Think about your domain's types. Then you don't even have to worry about where the data's coming from. Maybe you don't have any data. Maybe the backend developers won't let you look at that data or whatever. Uh but the The idea is we uh can mock it. And again, that's 11 lines of code. You just added one more with mocks true. So.
[00:21:10] Michael Chan: That's so crazy. So, I imagine that that really helps in kind of like the prototyping of things as well as um just like testing. Like it seems like that kind of has these cascading effects to just about all of the like local development lifecycle.
[00:21:24] Eve Porcello: Absolutely. Yeah. So, we actually work on this volunteer project for an organization in Tahoe called The High Fives Foundation. Elevator pitch for that is it helps people if they're injured skiing or doing any sort of extreme sport, uh just have resources so that they can get back uh working or get back to their life. Um so we're building a website for them to make uh their website a little bit more accessible. That's not the point. The point is that we put together an Apollo server uh for them. And we don't really have access to any of their data whatsoever. We know kind of like what the fields are, but they're like, "Well, this is uh this is private data for these people and they don't want you to have it." Yeah. I was like, "That seems fair." But we can mock it all and we can test it and we can write tests um for this server even though we don't have the data yet. And once we do, um we can plug it in and I'm assuming it'll be a lot more faster of a process than uh having to like have everything from scratch. So, it's really cool. It empowers us as client-side developers to really build some cool stuff.
[00:22:34] Michael Chan: That's really interesting. So, it sounds to me like like GraphQL is really this kind of layer that sits sits in between like application and data. And it allows you to kind of go further in the process in development with without actually the the data or worrying about this shape or kind of where that data is coming from. And then, you know, later on, you kind of just like glue it all together and know that your application is gonna work and not worry too much about like how the data gets there.
[00:23:02] Eve Porcello: Exactly. Yeah. And we went from the monolith to all of these microservices, right? But and we've seen a lot of talks about that. All of these different data sources are all over the place and GraphQL just provides us with that organization. So, yeah, it's really, really cool stuff.
[00:23:22] Michael Chan: I like it. I like it a lot. Um, how have you found people respond to types in general? Obviously, that's something that's kind of not, I I guess, super established yet with JavaScript developers. We kind of like the flexibility of loosey-gooseiness with types. Um, how do people respond when they see this capability that you're showing them with GraphQL?
[00:23:42] Eve Porcello: Um, I think when Apollo started giving talks about their server specifically, they gave us this idea of schema-driven development and uh like thinking about all of the types first before building an app. And yeah, there was some resistance to that because we're JavaScript developers, we wanna do what we wanna do. Um but I think GraphQL has sort of come of age in the same time as TypeScript as well. So-
[00:24:09] Michael Chan: Yeah.
[00:24:10] Eve Porcello: At the same time that you have people who are like, types are too much, I wanna be free. Um there are a lot of people who have adopted TypeScript and love it and they think like, oh, wow, this really aligns well with GraphQL. Um, you can also do a lot of auto- you can do a lot of code gen stuff with TypeScript and GraphQL, which is pretty awesome too. So, I think people like that aspect of it. GraphQL also is a full stack thing. So, everybody on the team is gonna touch your GraphQL server in some way, your GraphQL project in some way. And so, for folks who are on the backend who are like, these frontend people, they don't understand like how important types are, they'll- that's a good way of bringing them to the table and being like, this actually helps everybody. And we can think about these things together. We can get in a room and talk about our schema first. And we can build some cool stuff together. Let's do it. So, uh, I think it's-
[00:25:14] Michael Chan: That's something that's really interesting that you touch on is it seems like for a really long time, development teams have been like fully separated between like UI and data effectively, like backend. Um, and it really does feel like, you know, with React and GraphQL, there's really like, there's, we're just building into that connective tissue and and teams really have to get better at communicating and not just assuming like, oh, this is your responsibility or this is your responsibility or you screw screwed this up and I hate the way you do this. Um, and it's interesting that that GraphQL kind of sits like in that middle that middle layer, which allows you to still have the conversations, but maybe not fight over them so much. Because it's just like, okay, like, well, we have it the way we need. So, we're just gonna map it to the thing that you have the way you have it.
[00:26:03] Eve Porcello: Absolutely. Yeah. I think everybody gets a lot more freedom from that. And having a document like the schema, it's sort of the blueprint for your whole app.
[00:26:12] Michael Chan: Yeah.
[00:26:13] Eve Porcello: Um, it brings everybody together on the same page. And people really like that. So, at least I do. But I I think other people do too.
[00:26:21] Michael Chan: For teams that are are new and kind of architecting an app from the beginning, do you recommend starting from that like GraphQL schema layer and then kind of like letting the team separate from there?
[00:26:32] Eve Porcello: Uh, I think so. Yeah. I think that is a nice way of getting everybody in the same place. Um, everybody has a different sort of perspective on like what is necessary, what do we really need. Um, instead of saying like, let's look at our database and figure out what all those fields are and create a one-to-one map of that, you can think kind of greenfield in a brownfield, you know, about like what is the best way to build this. And, uh, yeah, I think that's a good place to start.
[00:27:05] Michael Chan: Yeah, I've always been obsessed with technologies that have this kind of evergreen aspect to them where it's like Okay, we have stuff that we all know sucks, but like we have a mechanism for kind of giving ourselves like the API that we want to work with, even though like it's kind of like all like knotted roots underneath. How does- I know that one of the key aspects of GraphQL is the way that you can like version your API or something like that. Maybe I am so out of my depth on on even like asking this question, but like um Is that something that is like easy to like hook into? Like should types change or you decide to like make something different down the road?
[00:27:46] Eve Porcello: A lot of people have a lot of different opinions about that. So, um, with REST, there was V1 of like the GitHub REST API, right? V2, V3, everything would be um sort of similar, but the API would change from version to version. The GraphQL spec says that you shouldn't version a GraphQL API. Instead, you should deprecate fields or add things to that schema as needed. And that's that's what was introduced in the spec. And that's what Facebook has done. So, they have literally one schema for everything. Which is-
[00:28:24] Michael Chan: Wow.
[00:28:24] Eve Porcello: —pretty fascinating, actually. Watch some Lee Byron or Dan Shafer talks about that. I won't speak to that in detail. But I think that um more organizations lately have found that versioning a GraphQL schema has worked for them. Okay. So, Shopify in Toronto did that. And they're like, we like this. So, it's worked for them. So, I think more organizations may do that. But the whole um kind of concept of managing a schema, managing the API, there are more tools emerging for that. Because it's tough, right? There's- Yeah. All these different people working on all these different products. And they're like, I need that field. Or conversely, don't take that field away or my clients are gonna break. So, um, it'll be interesting to see how those tools evolve and answer- solve problems like that. Apollo Engine, for example, has uh some schema tools. Where if you take away a field, uh it'll tell you before you push it to production, which is pretty cool. So, like, are you sure you want to do this? But yeah, the official documentation says not to do it. But I think it may be a thing moving forward. So.
[00:29:44] Michael Chan: Yeah, yeah. Um, what are some great uh GraphQL APIs um that people might be able to use to explore you know, if if they can't get approval in their own applications, what are some great GraphQL APIs to play with?
[00:29:56] Eve Porcello: Sure. Um, well, the rule of GraphQL is you have to start by sending it API or sending queries rather to the Star Wars API, Swapi. That's the rule. I didn't make the rule. That's the rule handed down by the GraphQL team.
[00:30:11] Michael Chan: Point zero.
[00:30:12] Eve Porcello: So, that's first. Um, I'd also recommend the GitHub GraphQL Explorer. So, that's pretty amazing because you can log in with your GitHub account. You can uh you can query your own data. You can, if you have time on your hands, send mutations to like add smiley faces to issues and things like that.
[00:30:33] Michael Chan: Really?
[00:30:33] Eve Porcello: I think that's fun, but not for everybody probably. But um it's a really great way of seeing how a huge organization has adopted GraphQL. And has made it work for them. And kind of like how do you think about these types and how are they interconnected? So, they've done an excellent job at that. Um, what else? We have- oh, OneGraph is a great one to look at too. So-
[00:31:01] Michael Chan: OneGraph.
[00:31:01] Eve Porcello: OneGraph uh is a company started by Sean Grove and some other folks. They have basically wrapped all of these APIs like Spotify and GitHub and All of your favorite APIs are there. Definitely check out OneGraph if you're looking to explore the query language. And uh yeah, there, that's something that is amazing just from a gateway perspective. We talked about like how do you organize all of these different data points.
[00:31:30] Michael Chan: Yeah.
[00:31:30] Eve Porcello: With OneGraph, you can send one query, get data from Spotify and GitHub and all of these different sources in one request. So. I think they're onto something there. That's really cool.
[00:31:42] Michael Chan: Yeah, that's crazy. Yeah, that seems like a really good illustration of the power of GraphQL as not like just being mapped to one, one data source.
[00:31:51] Eve Porcello: Sure.
[00:31:51] Michael Chan: I love it. Uh, anything else before we kind of like move on, on, uh, on GraphQL that you think people should know?
[00:31:57] Eve Porcello: Uh, I'd just say maybe check out Apollo Federation if you're looking to take the next steps beyond the The client and the server. Um Apollo has basically figured out- there was this idea of schema stitching before. So, in other words, what if I have 2 or more GraphQL APIs and I want to create one API for both of them? Then like let's say I have weather data and maybe user data, things like that. I want to put them underneath one umbrella. So, people were using schema stitching for that. Apollo has introduced this new thing called Apollo Federation where you create different services for uh different things and then you put them all together under one roof.
[00:32:43] Michael Chan: Crazy.
[00:32:44] Eve Porcello: So, yeah, it's pretty cool. Things like we did a simple example with like a ski fake ski resort that we always use as a demo. We have a trail API and a lift API. And then we have one main API that everybody can access to get the data from everywhere. So, essentially, 2 teams or 3, 4, 5 teams could work on their own API without uh getting in each other's way. And then everything is just under one server. So, that's brand, brand new. But something to definitely check out.
[00:33:16] Michael Chan: Cool. So, you could you could make queries to either one of them independently or you could hit this third one that and make both of them simultaneously.
[00:33:25] Eve Porcello: Exactly. Exactly.
[00:33:26] Michael Chan: Nifty.
[00:33:27] Eve Porcello: Yeah.
[00:33:27] Michael Chan: Nifty. All right. So I have a personal question. Okay. Now, uh, well, personal for me. Um, so I am, I am emceeing, uh, React Rally this year. Yeah. And I'm very excited about it, but it's like my, it's gonna be my first time emceeing anything. Um, given talks before, um, but you are, you are great at emceeing. You emceed, uh, React.js Ladies recently. You re- you emcee, uh, Reactathon. So. What advice do you have for me on the MC role?
[00:33:58] Eve Porcello: First of all, you're going to be an incredible MC because anyone who's seen you speak knows that you know how to do it already. So don't even worry about that. Don't-
[00:34:07] Michael Chan: Thank you.
[00:34:08] Eve Porcello: Like, yeah, that's gonna be incredible. Um, I would say that I was listening to your podcast with uh Saron the other day from Code Newbies. Oh yeah, yeah. And she was talking about how The whole idea of conference speaking is like a little bit wrong, because it's really a performance, right? So I think that's what you should keep in mind as an MC. People are there because they want to learn stuff and because they want to see talks, but they're also there because they're out of work and they're having fun and they want to meet people and they want this environment that encourages them to feel included and to have a good time. So So, I would just say that like crank music really loud into your conference venue if you can. Which when we hosted Reactathon, we literally bought a speaker because we knew that they wouldn't play it loud enough. So, we brought our own music.
[00:35:01] Michael Chan: Taking this into my own hands.
[00:35:03] Eve Porcello: We're ridiculous. But maybe don't do that. But I would say that um yeah, just some sort of a big opening, don't be afraid of doing that. And then involving the audience as much as you can. A lot of folks have done like uh dad jokes, telling jokes to the audience. And the reason that that works really well is because people are involved and they wanna hear their joke read on stage. So-
[00:35:26] Michael Chan: Yeah.
[00:35:27] Eve Porcello: Any way that you can involve the audience is great. I did a thing at React.js uh Ladies in London where uh I just gave out stuff from my backpack, like a giveaway, because I didn't have real prizes. And that's very stupid, but that is something that is involving the audience and it's something that people are like, why are you doing this? But you're trying to fill time. You're trying to make the speakers feel like they're not being rushed also is a huge thing. So, yeah, um, yeah, just, just have fun and make people feel like they're, uh, they're involved.
[00:36:02] Michael Chan: There was one bit in React.js lady is where you're like, it was like things I could have Googled, I think is like a-
[00:36:11] Eve Porcello: That's, yeah.
[00:36:14] Michael Chan: I was dying.
[00:36:15] Eve Porcello: That's, uh, yeah, just, it does, you don't obviously have to put much thought into that sort of thing. So whatever, just roll with it and yeah, you're there to have fun, so I'm sure you'll do great.
[00:36:30] Michael Chan: Awesome. Well, I'm very excited. I'm, I'm, I think it's gonna be fun. I appreciate the, the advice. So, as we as we wrap up, is there anything that you would like to tell people who are kind of learning React or GraphQL for the first time?
[00:36:43] Eve Porcello: Well, um, I'd say if you're learning GraphQL for the first time, uh, there's all these different products in the ecosystem and it feels super overwhelming. But um, what's really cool about GraphQL is you can play around with some of those APIs right away. So, no matter what your background is, if you've never written a line of code, you can get data from a GraphQL API using something like GitHub or Swapi or uh whatever you choose. So, um starting small with anything is what I always like to recommend to people. Even if they're even if we're gonna get to very advanced concepts in a course or something like that, there's always people who um who won't admit that they don't know something. And I can be one of those people too. Like oh, I don't want to let people know that I don't know this thing. But um, like, just making sure that you're learning the fundamentals of things really well um is a great place to get started. Particularly with GraphQL. Because these API explorers have made it pretty uh quick to get started. I won't say easy. But quick for sure. Quick.
[00:37:52] Michael Chan: Nice word choice. Um, and then I I guess finally, what is one resource that that you've made, you know, whether it be a talk, a book, uh, I I know there's videos online of you doing like audition songs. I'll let you, uh, I'll let people find those. Those are great.
[00:38:09] Eve Porcello: That's very, that's very old. Yeah.
[00:38:11] Michael Chan: Yeah, I know, I know, but but worth it. Um, if there's one resource online that you feel represents you and your work like as good as it can get, um, which was the one that represents you the best?
[00:38:25] Eve Porcello: Let's see, I would probably say the talk at React Rally would probably represent that the best. Um, even though there's a lot of clown buffoonery at the beginning of that, I think that um these- there's a good place to get started there with GraphQL. Um, just learning things from scratch and hopefully that'll make people feel more welcome as they enter the GraphQL community and the React community. Um, I love creating resources that are um for aimed at beginners, hopefully, even though not everything I do is aimed at beginners. But I really want people to feel like, "Oh, wow, I could try that out. I could build this dumb thing," um, as Sarah Vera would say, and I could uh make something that uh I think is fun. And if people like it, great. And if they don't, then I got to make this cool thing. So. So, um, I think that's where I would begin.
[00:39:24] Michael Chan: I love it. Well, where can people find you online and find out what you're about as you continue to develop amazing resources for React and GraphQL developers?
[00:39:35] Eve Porcello: You can find me @eaveporcello on everything. Because no one has that name. Uh, thankfully. Yet. Uh, and then I do some course materials on egghead.io. So, I'm gonna have a query language course coming out at the end of July. And that's definitely something to check out no matter your background. So, if you have a project manager on your team or a designer on your team who wants to know about GraphQL, there is no programming knowledge required whatsoever. So, that's a good place to start.
[00:40:07] Michael Chan: Amazing. We have um just to— I mean, this is I mean, we're we're basically done. But like you you mentioned that design part of it. And I have to say, like, as a designer, being able to like make a request and format the date exactly that I want it in the query is like- it feels like magic because we've had to use like libraries for that like for so long. And like to be able to have that all integrated is like brilliant. So yes, designers, take this course when it comes out. Hopefully, hopefully the, the launch of this episode will kind of coincide with the launch of that course. I'm very excited personally about that because you're a terrific teacher and uh I think it's gonna be amazing.
[00:40:46] Eve Porcello: Awesome. Thank you so much.
[00:40:48] Michael Chan: Yeah, yeah. Thank you so much for joining us today and sharing with us what you know about um all of these amazing things. I hope that uh people will follow you and learn from your— uh what did you say, uh kind of the buffoonery or in-
[00:41:03] Eve Porcello: Clown buffoonery, I think I said.
[00:41:05] Michael Chan: That would just reach into their soul and invite them to learn something new. Thank you so much, Eve.
[00:41:11] Eve Porcello: Thank you.
[00:41:12] Michael Chan: Thanks, Eve, for joining us on this show. You are a delight and we're so grateful to have your warm and funny contributions to React. Thanks also to GitPrime for sponsoring this episode and so many episodes over the past 2 months. I am incredibly grateful. And if you are also grateful, go to gitprime.com/20patterns and download the free ebook, 20 Patterns to Watch for in your engineering team. It'll help you get a higher perspective of code and become the leader I know you want to be. This episode of React Podcast was edited by Mikael Delport. It was produced by Mikael Delport and Sarah Jackson. You can find React Podcast on Speck, a network to help designers and developers level up. Visit speck.fm to find other shows that will take you further in your career. Help us out by reviewing this show on iTunes. Your reviews help the show grow and help us ensure great guests and awesome content week to week. To join the discussion, visit reactpodcast.com/chat or follow us on Twitter @reactpodcast. I'm @chantastic. To stay out of the discussion but get updates, visit reactpodcast.com/news and sign up for emails. Thanks so much for giving us your attention. We'll be in your ears again next week.
chantastic.fm