From 85322586f166296310dcd6f0855cbda9c65a8362 Mon Sep 17 00:00:00 2001 From: vvakame Date: Thu, 25 Oct 2018 17:52:19 +0900 Subject: [PATCH] address comment --- example/type-system-extension/generated.go | 18 +++++++++--------- example/type-system-extension/gqlgen.yml | 10 +--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/example/type-system-extension/generated.go b/example/type-system-extension/generated.go index 9f4c158760..2d38420c21 100644 --- a/example/type-system-extension/generated.go +++ b/example/type-system-extension/generated.go @@ -2094,27 +2094,27 @@ func (ec *executionContext) introspectType(name string) *introspection.Type { } var parsedSchema = gqlparser.MustLoadSchema( - &ast.Source{Name: "./schemas/enum-extension.graphql", Input: `directive @enumLogging on ENUM + &ast.Source{Name: "schemas/enum-extension.graphql", Input: `directive @enumLogging on ENUM extend enum State @enumLogging `}, - &ast.Source{Name: "./schemas/input-object-extension.graphql", Input: `directive @inputLogging on INPUT_OBJECT + &ast.Source{Name: "schemas/input-object-extension.graphql", Input: `directive @inputLogging on INPUT_OBJECT extend input TodoInput @inputLogging `}, - &ast.Source{Name: "./schemas/interface-extension.graphql", Input: `directive @interfaceLogging on INTERFACE + &ast.Source{Name: "schemas/interface-extension.graphql", Input: `directive @interfaceLogging on INTERFACE extend interface Node @interfaceLogging `}, - &ast.Source{Name: "./schemas/object-extension.graphql", Input: `directive @objectLogging on OBJECT + &ast.Source{Name: "schemas/object-extension.graphql", Input: `directive @objectLogging on OBJECT extend type Todo @objectLogging `}, - &ast.Source{Name: "./schemas/scalar-extension.graphql", Input: `directive @scalarLogging on SCALAR + &ast.Source{Name: "schemas/scalar-extension.graphql", Input: `directive @scalarLogging on SCALAR extend scalar ID @scalarLogging `}, - &ast.Source{Name: "./schemas/schema-extension.graphql", Input: `extend schema { + &ast.Source{Name: "schemas/schema-extension.graphql", Input: `extend schema { mutation: MyMutation } @@ -2130,7 +2130,7 @@ input TodoInput { text: String! } `}, - &ast.Source{Name: "./schemas/schema.graphql", Input: `# GraphQL schema example + &ast.Source{Name: "schemas/schema.graphql", Input: `# GraphQL schema example # # https://gqlgen.com/getting-started/ @@ -2159,13 +2159,13 @@ enum State { DONE } `}, - &ast.Source{Name: "./schemas/type-extension.graphql", Input: `directive @fieldLogging on FIELD_DEFINITION + &ast.Source{Name: "schemas/type-extension.graphql", Input: `directive @fieldLogging on FIELD_DEFINITION extend type Todo { verified: Boolean! @fieldLogging } `}, - &ast.Source{Name: "./schemas/union-extension.graphql", Input: `directive @unionLogging on UNION + &ast.Source{Name: "schemas/union-extension.graphql", Input: `directive @unionLogging on UNION extend union Data @unionLogging `}, diff --git a/example/type-system-extension/gqlgen.yml b/example/type-system-extension/gqlgen.yml index 4fb18ef7f6..bc7a31dba0 100644 --- a/example/type-system-extension/gqlgen.yml +++ b/example/type-system-extension/gqlgen.yml @@ -4,15 +4,7 @@ # for detailed .gqlgen.yml documentation. schema: -- ./schemas/schema.graphql -- ./schemas/schema-extension.graphql -- ./schemas/type-extension.graphql -- ./schemas/scalar-extension.graphql -- ./schemas/object-extension.graphql -- ./schemas/interface-extension.graphql -- ./schemas/union-extension.graphql -- ./schemas/enum-extension.graphql -- ./schemas/input-object-extension.graphql +- ./schemas/*.graphql exec: filename: generated.go