Memleak fix

This commit is contained in:
2023-04-08 20:45:05 +01:00
parent 7623410bfe
commit 7af4e1f96a
5 changed files with 110 additions and 62 deletions
+15
View File
@@ -44,6 +44,21 @@ type Query struct {
compiledQuery []byte `json:"compiledQuery"`
}
type queryExecutor struct {
result queryExecutorResult
context context.Context
client *BaseClient
headers map[string]interface{}
hash string
query []byte
should_cache bool
}
type queryExecutorResult struct {
data interface{}
errors error
}
type request struct {
Variables any `json:"variables"`
Query string `json:"query"`