Brianna Wu Has Connections To A Nazi

Online Abuse Prevention Initiative founder Randi Lee Harper spent the better part of the last few years fighting the misogynsts of gamergate with Brianna Wu. Now Randi Lee Harper has revealed that…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Adding GraphQL To A Vanilla JS Web App

AWS Amplify for Firebasers

Following on from my first two Amplify articles in which I gave an overview and created a simple vanilla JS app with the Amplify service, in this article I would like to add GraphQL and compare the dev experience of Amplify with Firebase’s Firestore.

You will need to see the first two articles if you are a bit lost with the AWS Amplify BAAS setup.

AWS AppSync is AWS’s implementation of the GraphQL API. So AWS AppSync is a managed GraphQL service, and the database used for this implementation is Amazon DynamoDB which is a NoSQL database. The QL in GraphQL stands for “query language”.

If you are new to GraphQL, then I recommend watching these two YouTube videos to see how it works:

This article is not an explanation of GraphQL, but only how to add it to your Vanilla JS app with the Amplify CLI.

Carrying on from the last article’s code, run amplify add api in the terminal to add GraphQL to your project. You can see below there is an option to use REST, but obviously select GraphQL.

You’ll see that when you answer the question to edit the code, the schema file will be opened in an editing tab. This is just an example template for you to use.

Your GraphQL API has been created!

This is important to know, especially as someone comparing Amplify to Firebase. I’m particularly interested in the @searchable functionality…

Add a comment

Related posts:

Can You Take Me To The Washroom?

Last weekend I had a long conversation with a dear friend who is going through an ankle surgery that left her immobile for weeks- hardly able to get up and walk. It’s going to be 3 months since her…

Building and Developing Your Team

They say that every great company is as good as the sum of its parts, and those parts are the people you bring in. Growing your team requires an investment of resources, time, and trust, of course…

Are Microtransactions Really Necessary In Video Games?

Video games have evolved greatly over the past couple decades. Since 1983 (the crash of the US game market industry) and the rise of the NES in 1985, things have grown to an almost insane degree…