The developer discusses building a GraphQL API against a Mongo database in Java with a Spring stack. Starting with a prerequisite setup in Java 17 and Spring 3, they create a basic “Hello World” app for initialization. The API functionality is expanded by adding configurations for error handling and testing. The process includes adding application... Continue reading →
The text presents a detailed comparison between 3 popular Java libraries for accessing MongoDB: MongoDB Java Driver, Morphia, and Spring Data MongoDB, offering insights into their usability and relevance. The MongoDB Java Driver provides direct access to MongoDB for native-like interaction. Morphia is an Object-Document Mapper designed for easy code readability and maintenance. For Spring... Continue reading →
There are several different approaches for implementing pagination in GraphQL, and specifically with Java Spring Boot. The type of pattern to use depends on numerous factors like the size of the dataset, ordering requirements, and related performance characteristics. This post doesn’t cover the logic or details needed to determine the type of paging to use,... Continue reading →
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 →
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 →