So what is the objective of this book?
It is important for developers to be familiar with web services that follow the GraphQL or REST specification, not only from the perspective of using those web services, but also in designing and developing them. The objective of this book is to teach Go developers, through example, how to do just that.Read More
While REST APIs are amongst the most popular when it comes to client consumption, they are not the only way to consume data and they aren’t always the best way. For example, having to deal with many endpoints or endpoints that return massive amounts of data that you don’t need are common. This is where GraphQL comes in.
With GraphQL you can query your API in the same sense that you would query a database. You write a query, define the data you want returned, and you get what you requested. Nothing more, nothing less. I actually had the opportunity to interview the co-creator of GraphQL on my podcast in an episode titled, GraphQL for API Development, and in that episode we discuss GraphQL at a high level.
You might remember that I wrote a tutorial titled, Getting Started with GraphQL Development Using Node.js which focused on mock data and no database. This time around we’re going to take a look at including MongoDB as our NoSQL data layer.Read More
In a recent tutorial I demonstrated querying a GraphQL API from a Vue.js web application, but what if we wanted to explore something with an Android or iOS mobile application?
In this tutorial we’re going to see how to create an iOS and Android mobile application using NativeScript and Angular and then query a GraphQL API from that application using numerous methods.Read More
So how do you interact with a GraphQL API using something like Angular, React, or Vue.js?
As you probably know, I’ve been doing a lot with GraphQL recently. I’ve released tutorials that include Java with GraphQL, Node.js with GraphQL, as well as Golang with GraphQL, but I’ve only ever demonstrated testing those GraphQL APIs with cURL. If you’ve ever used cURL for anything, not specific to GraphQL, you’ll know it works well, but it isn’t the most friendly tool available.
We’re going to look at an alternative method to testing GraphQL queries using a convenient Google Chrome extension called ChromeiQL.Read More
I am pleased to announce that the latest episode of The Polyglot Developer Podcast is available for download! If you’ve been keeping up with the blog recently, I’ve published quite a bit of content around GraphQL as I personally believe it to be the future for API development. Being able to access related and unrelated data on demand through a single endpoint is huge for the people consuming your data and huge for the developers creating the data because of specific model definitions.
In this episode titled, GraphQL for API Development, I’m joined by Lee Byron, one of the co-creators of GraphQL at when he worked at Facebook. Lee gives us all the details on how GraphQL came to be, why it is huge for development, and how to use it successfully in your next application.Read More
So you started playing around with GraphQL and Node.js. Did you happen to get up to speed with my previous tutorial titled, Getting Started with GraphQL Development Using Node.js? Regardless on how you’ve jumped into GraphQL, you’re probably at a time where you need to figure out how to protect certain queries or pieces of data from the general public through some kind of permissions or roles.
When building a RESTful API, the common approach to endpoint protection is with JSON web tokens (JWT). In fact, I even wrote a previous tutorial on the subject, but how does that have relevance to GraphQL?
We’re going to take the common JWT approach and apply it towards protecting queries as well as particular pieces of data in a GraphQL API created with Node.js.Read More