diff --git a/README.md b/README.md index 896ad02a9e..0eea234c37 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Still not convinced enough to use **gqlgen**? Compare **gqlgen** with other Go g 3. Initialise gqlgen config and generate models go run github.com/99designs/gqlgen init + printf 'package model' | gofmt > graph/model/doc.go 4. Start the graphql server diff --git a/docs/content/getting-started.md b/docs/content/getting-started.md index bb66277199..84c9be2a96 100644 --- a/docs/content/getting-started.md +++ b/docs/content/getting-started.md @@ -53,6 +53,7 @@ go get -d github.com/99designs/gqlgen@v0.14.0 ```shell go run github.com/99designs/gqlgen init +printf 'package model' | gofmt > graph/model/doc.go ``` This will create our suggested package layout. You can modify these paths in gqlgen.yml if you need to.