@@ -66,20 +66,16 @@ julia> GraphQLClient.execute(client, query_string, operation_name="getCountries"
6666```
6767"""
6868
69- function CleanDict(pairs:: Pair... )
70- return Dict(p for p in pairs if ! isnothing(p[2 ]))
71- end
72-
7369execute(query:: AbstractString , output_type:: Type{T} = Any; kwargs... ) where T = execute(global_graphql_client(), query, output_type; kwargs... )
7470function execute(client:: Client , query:: AbstractString , output_type:: Type{T} = Any; variables= Dict(), operation_name= nothing , kwargs... ) where T
75- return execute(client, CleanDict (" query" => query, " variables" => variables, " operationName" => operation_name), output_type; kwargs... )
71+ return execute(client, Dict (" query" => query, " variables" => variables, " operationName" => operation_name), output_type; kwargs... )
7672end
7773execute(payload:: AbstractDict , output_type:: Type{T} = Any; kwargs... ) where T = execute(global_graphql_client(), payload, output_type; kwargs... )
7874function execute(client:: Client , payload:: AbstractDict , output_type:: Type{T} = Any; kwargs... ) where T
7975 return execute(client. endpoint, payload, client. headers, output_type; kwargs... )
8076end
8177function execute(endpoint:: AbstractString , query:: AbstractString , headers:: AbstractDict = Dict(), output_type:: Type{T} = Any; variables= Dict(), operation_name= nothing , kwargs... ) where T
82- return execute(endpoint, CleanDict (" query" => query, " variables" => variables, " operationName" => operation_name), headers, output_type; kwargs... )
78+ return execute(endpoint, Dict (" query" => query, " variables" => variables, " operationName" => operation_name), headers, output_type; kwargs... )
8379end
8480function execute(endpoint:: AbstractString , payload:: AbstractDict , headers:: AbstractDict = Dict(), output_type:: Type{T} = Any; kwargs... ) where T
8581 return _execute(endpoint, JSON3. write(payload), headers, output_type; kwargs... )
0 commit comments