diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-19 17:58:45 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-19 17:58:45 +0200 |
commit | d7313068fbb95829175fe108352b7b1e99e6fe9d (patch) | |
tree | 64a85eec7983ade7f087040b599fa54908900486 /graphql | |
parent | 9f04fc2f7b31aeefa8281aff0d1d40a698f4b627 (diff) | |
download | git-bug-d7313068fbb95829175fe108352b7b1e99e6fe9d.tar.gz |
small cleaning
Diffstat (limited to 'graphql')
-rw-r--r-- | graphql/handler.go | 2 | ||||
-rw-r--r-- | graphql/schema.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/graphql/handler.go b/graphql/handler.go index 4843fff9..7dbb7a0f 100644 --- a/graphql/handler.go +++ b/graphql/handler.go @@ -3,7 +3,7 @@ package graphql import "github.com/graphql-go/handler" func NewHandler() (*handler.Handler, error) { - schema, err := graphqlSchema() + schema, err := newGraphqlSchema() if err != nil { return nil, err diff --git a/graphql/schema.go b/graphql/schema.go index f8fb9768..e929fb44 100644 --- a/graphql/schema.go +++ b/graphql/schema.go @@ -2,7 +2,7 @@ package graphql import "github.com/graphql-go/graphql" -func graphqlSchema() (graphql.Schema, error) { +func newGraphqlSchema() (graphql.Schema, error) { rootQuery := graphql.ObjectConfig{ Name: "RootQuery", |