Handling Errors in GraphQL

If you work in software, you’ll inevitably have to deal with errors at some point. As hard as we try to make our code bulletproof, our systems fault tolerant, and our user interfaces crystal clear, there will be problems. Code won’t work as intended. Systems will fail. Users will get confused and do something unexpected. … [Read more…]

A New Chapter

Friday was my last day at RevUnit, where I’ve worked for the last year and a half or so. I’m incredibly grateful to everyone I worked with there, and for the opportunities that I was given. This is where I began to work with GraphQL after all! While it’s sad to be leaving, I couldn’t … [Read more…]

GraphQL Has A Subtle Naming Problem

There are only two hard things in Computer Science: cache invalidation and naming things. — Phil Karlton Most programmers have heard this quote from Phil Karlton, and with good reason – it tends to resonate. If you’ve ever dealt with caching then you know that it’s not caching an item that’s hard – it’s making … [Read more…]

Interview: GraphQL at Shopify with Evan Huus

Hey everyone! I’m back with another interview, and this time I got an opportunity to sit down with Evan Huus, the developer lead on the API Patterns team at Shopify. Evan’s team is responsible for the GraphQL API at Shopify. We got to talk about a range of different topics such as: The success story … [Read more…]

Should You Use GraphQL For Your MVP/POC?

Startups and large corporations alike know the concept of an MVP or a POC. These are important tools when attempting to determine the viability of a concept without sinking a lot of unnecessary time, money, and energy into the idea. This brings us to the question I want to explore today:¬†does GraphQL make sense for … [Read more…]

Dispelling Common Misconceptions About GraphQL

There seem to be a lot of misconceptions about GraphQL out there. Let’s take a look at a few of them and I’ll do my best to address them. Misconception #1: GraphQL exposes my whole database! Reality: GraphQL gives you fine-grained control over what data you expose This is probably the most common misconception that … [Read more…]

Stop Fighting the Type System

How can I either change the format of the errors returned or else turn them off completely? This is the question I recently encountered from a newcomer to GraphQL – a strange question to say the least. He started with some background. In the pre-GraphQL version of his app/API, when errors occurred, the app would … [Read more…]

Interview with Robert Mosolgo – Creator of graphql-ruby

Recently, I got the opportunity to sit down with Robert Mosolgo and interview him. For those of you that don’t know, Robert is the creator of the graphql-ruby gem, and he also works at GitHub on the team that works on their GraphQL API (among several other things). This is something I’ve been looking forward … [Read more…]

Benefits of GraphQL on the Backend

There’s a lot of information out there discussing what the benefits of GraphQL are, but many of them focus on the front-end more than anything. This is why it’s so easy to convince front-end developers to use GraphQL – after all, it was built to ease a lot of the struggles they had. But what … [Read more…]