gqlgen-echo-sample

command module
v0.0.0-...-e59cf66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL