DataLoader for GraphQL Implementations

A popular library used in GraphQL implementations is called DataLoader, and in many ways the name is somewhat descriptive of its purpose. As described in the JavaScript repo for the Node.js implementation for GraphQL “DataLoader is a generic utility to be used as part of your application’s data fetching layer to provide a simplified and... Continue reading →

Single Responsibility Principle for GraphQL API Resolvers

The Single Responsibility Principle (SRP) states that a class or module should have only one reason to change. It emphasizes the importance of keeping modules or components focused on a single task, reducing their complexity, and increasing maintainability. SRP defined. In GraphQL API development the importance, and need, of maintaining code quality and scalability is... Continue reading →

GraphQL Error Handling

The following post is based on some of the common error handling techniques I’ve seen in use when implementing GraphQL APIs. The following examples include; Objects in the Response. Union Types. Middleware Custom Error Types Extensions Bubbling & Partial Results To elaborate, a basic definition of each of these follows with a slightly deeper dive... Continue reading →

A Hasura Quick Start with Remote Schema, Remote Joins

I’ve been building GraphQL APIs for a number of years now – of along side RESTful, gRPC, XML, and other API styles I won’t even bring up right now – and so far GraphQL APIs have been great to work with. The libraries in different languages form .NET’s Hot Chocolate, Go’s graphql-go, Apollo’s JavaScript based... Continue reading →

Gradle Build Tool

A few helpful links and details to where information is on the Gradle Build Tool. Installation Via SDKMAN sdk install gradle x.y.z where x.y.z is the version, like 8.0.2. Via Brew with brew install gradle. Manually check out the instructions here. Building a Java Library (or application, Gradle plugin, etc) Using the init task. From... Continue reading →