Setting Up Granate

Quick little sample of what I had to do to setup Granate to auto generate my graphql models/schemas for go.

First make sure you have your GOPATH set correctly otherwise it will complain about not being able to find the config.yaml file.

Next actually go get Granate:

go get github.com/granateio/granate

Lastly, make sure these three dependencies are installed:

go get golang.org/x/tools/cmd/goimports
go get github.com/mitchellh/mapstructure
go get github.com/graphql-go/relay

Leave a Reply

Your email address will not be published. Required fields are marked *