From 4546769813c447c6e73cf3d032aabb8b34b06793 Mon Sep 17 00:00:00 2001 From: Michael Compton Date: Mon, 15 Mar 2021 15:04:14 +1100 Subject: [PATCH] Make it clearer what happened on init. (#1487) --- docs/content/getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/getting-started.md b/docs/content/getting-started.md index 92f99ded949..76f5bd39c42 100644 --- a/docs/content/getting-started.md +++ b/docs/content/getting-started.md @@ -85,8 +85,8 @@ type Mutation { ### Implement the resolvers -`gqlgen generate` compares the schema file (`graph/schema.graphqls`) with the models `graph/model/*` and wherever it -can it will bind directly to the model. +When executed, gqlgen's `generate` command compares the schema file (`graph/schema.graphqls`) with the models `graph/model/*`, and, wherever it +can, it will bind directly to the model. That was done alread when `init` was run. We'll edit the schema later in the tutorial, but for now, let's look at what was generated already. If we take a look in `graph/schema.resolvers.go` we will see all the times that gqlgen couldn't match them up. For us it was twice: