From 0ab636144bfc875f86e4d9fd7a2686bc57d5050c Mon Sep 17 00:00:00 2001 From: ipfans <363344+ipfans@users.noreply.github.com> Date: Tue, 25 Jan 2022 22:24:25 +0800 Subject: [PATCH] Update quickstart (#1850) --- README.md | 1 + docs/content/getting-started.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 896ad02a9ed..0eea234c37e 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 bb662771998..84c9be2a96f 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.