diff --git a/graph2/combine.sh b/graph2/combine.sh deleted file mode 100755 index 2343b5f..0000000 --- a/graph2/combine.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -echo "# Generated by stiching together the files under schema/ – DO NOT EDIT" >generated.gql -cat schema/root.gql schema/**/*.gql >>generated.gql \ No newline at end of file diff --git a/graph2/gqlgen.yml b/graph2/gqlgen.yml index e108f4f..4d2243a 100644 --- a/graph2/gqlgen.yml +++ b/graph2/gqlgen.yml @@ -1,4 +1,6 @@ -schema: generated.gql +schema: + - schema/root.gql + - schema/types/*.gql exec: filename: generated.go diff --git a/graph2/graph.go b/graph2/graph.go index f8bb3a8..b6f8832 100644 --- a/graph2/graph.go +++ b/graph2/graph.go @@ -6,7 +6,6 @@ import ( graphql "github.com/99designs/gqlgen/graphql" ) -//go:generate ./combine.sh //go:generate go run github.com/99designs/gqlgen -v // New creates a new GraphQL schema.