rendyfebry / go-graphql-example

GraphQL implementation with Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL with Golang Example Project

Build Status

Info

GraphQL implementation with Golang

Prerequisites

  • Go 1.12
  • Dep

Install Depedencies

dep ensure -v

Run

go run main.go
curl --location --request POST 'http://localhost:8080/graphql' \
  --header 'Content-Type: application/graphql' \
  --data-raw '{"query":"query{user(id: 1){id,name,age}}"}'

Test

go test -v ./...

About

GraphQL implementation with Golang


Languages

Language:Go 100.0%