Hotfix: GraphQL endpoint setup. (#4)

This commit is contained in:
Lukasz Raczylo
2021-05-29 20:32:48 +01:00
committed by GitHub
parent f6ee82113a
commit c37d7ee2f3
+2 -1
View File
@@ -30,8 +30,9 @@ func prepare() {
value, present := os.LookupEnv("GRAPHQL_ENDPOINT")
if present {
GraphQLUrl = value
} else if zero.IsZero(GraphQLUrl) && !present {
} else if !present && zero.IsZero(GraphQLUrl) {
GraphQLUrl = "http://127.0.0.1:9090/v1/graphql"
fmt.Println("Setting default endpoint", GraphQLUrl)
} else {
fmt.Println("GraphQL endpoint not set.")
}