go get github.com/graphql-go/graphql
Very basic example, is a 'hello world'
Is a more complex example, graphql with structs
Is an application web with graphQL without any external packages (without gorilla mux and gin)
Body: GraphQL
# Get products
URL: http://localhost:8080/products?query={list{id,name,info,price}}
# Create product
URL: http://localhost:8080/products?query=mutation{create(name:"Inca Kola",info:"Inca Kola is a soft drink that was created in Peru in 1935 by British immigrant Joseph Robinson Lindley using lemon verbena (wiki)",price:1.99){id,name,info,price}}
mkdir example
cd example
go mod init example
go get -d github.com/99designs/gqlgen
printf '// +build tools\npackage tools\nimport _ "github.com/99designs/gqlgen"' | gofmt > tools.go
go mod tidy
# create a new project
go run github.com/99designs/gqlgen init