Resolve minification issues.

This commit is contained in:
2025-05-23 20:56:01 +01:00
parent 5136a5869b
commit 240929a808
9 changed files with 592 additions and 23 deletions
+11
View File
@@ -38,6 +38,7 @@ func NewConnection() (b *BaseClient) {
retries_enable: envutil.GetBool("GRAPHQL_RETRIES_ENABLE", false),
retries_delay: time.Duration(envutil.GetInt("GRAPHQL_RETRIES_DELAY", 250) * int(time.Millisecond)),
retries_number: envutil.GetInt("GRAPHQL_RETRIES_NUMBER", 3),
minify_queries: envutil.GetBool("GRAPHQL_MINIFY_QUERIES", true), // Default: enabled for production efficiency
}
b.client = b.createHttpClient()
b.Logger.Debug(&logging.LogMessage{
@@ -63,3 +64,13 @@ func (b *BaseClient) SetOutput(responseType string) {
func (b *BaseClient) SetHTTPClient(client *http.Client) {
b.client = client
}
func (b *BaseClient) SetQueryMinification(enabled bool) {
b.minify_queries = enabled
b.Logger.Debug(&logging.LogMessage{
Message: "GraphQL query minification setting updated",
Pairs: map[string]interface{}{
"minify_queries": enabled,
},
})
}