Bugfixes + ability to set values per query.

This commit is contained in:
2023-04-08 00:54:48 +01:00
parent 23f88a91d2
commit 689b1efc43
7 changed files with 119 additions and 13 deletions
+4 -2
View File
@@ -30,8 +30,6 @@ func NewConnection() *BaseClient {
if b.LoggerWriter == nil {
b.LoggerWriter = log.New(os.Stdout, "", log.LstdFlags)
} else {
b.LoggerWriter = b.LoggerWriter
}
b.endpoint = envutil.Getenv("GRAPHQL_ENDPOINT", "https://api.github.com/graphql")
@@ -96,3 +94,7 @@ func NewConnection() *BaseClient {
b.Logger.Info(b, "graphQL client initialized;")
return b
}
func (b *BaseClient) SetEndpoint(endpoint string) {
b.endpoint = endpoint
}