go-graphql-server

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

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

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 7 Imported by: 0

README

go-graphql-server

Setup project

https://gqlgen.com/getting-started/

go mod init github.com/[username]/go-graphql-server
go get github.com/99designs/gqlgen
go run github.com/99designs/gqlgen init

Start of GraphQL Server

go run server.go

Add magic comment to resolver.go

//go:generate go run github.com/99designs/gqlgen

package graph
go generate ./...
dataloader
go run github.com/vektah/dataloaden UserLoader string *go-graphql-server/graph/model.User

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
graph

Jump to

Keyboard shortcuts

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