gqlgen-echo-sample icon indicating copy to clipboard operation
gqlgen-echo-sample copied to clipboard

Sample implementation of a Golang GraphQL server using gqlgen and Echo.

gqlgen-echo-sample

Sample implementation of a Golang GraphQL server using gqlgen and Echo.

Description

We combined gqlgen, a GraphQL library, and Echo, a web framework, to build a GraqhQL server implemented in the Go language.

https://tech.fusic.co.jp/posts/2020-04-12-gqlgen-echo-sample/

Screen Shot

Mutation Sample

Query Sample

Usage

$ go get github.com/yuuu/gqlgen-echo-sample
  1. Create the database gqlgen-echo-sample in PosgtreSQL beforehand.
  2. Modify db/dbconf.yml appropriately.
  3. Change the argument of gorm.Open() in main.go as needed.
$ goose up
$ go run main.go

Go to http://localhost:3000/playground.