Overview

In the following article, I launched Strapi on Amazon Lightsail.

This time, I add GraphQL and try using it.

Installing the GraphQL Plugin

I ran the following. Please adjust paths like backend as needed.

cydarnopatd/dbi@tsntarmaip/ia/ppalcuhgei2n/-hgtrdaopchsq/lbackend

Then, start the application.

yarndevelop

Accessing /graphql displays the following screen.

I had already created a content type called services with a field called title. So by issuing the following query, I was able to retrieve the list and metadata.

#q}uWes}rreiyrd}tvaegitia}ecadtytettcuoSs{rirpueitedrr{blaavuettqiteeuceddeesAArstty{{ormutationhere

The result is as follows.

{}"}da"}tsae"]"rd:va{}it{ca""}e"ias:dt"""""ttcu:[:rirpited{"blaa1uett"t"ee,e:ddsAA""tt:C""u::{lt""u22r00a22l33--J00a44p--a11n00"TT,2211::5599::0182..776582ZZ"",

Summary

Next, I would like to try integration with Next.js and similar frameworks.