4.1.1 Пример выполнения запроса без параметров
|
# Выполнение запроса без параметров
$text = '{
getDeliveryCl(isnLclassif:-10000)
{
classifName
protected
}
}'
$json = @{query = $text; variables = $null; } | ConvertTo-Json
$Response = Invoke-WebRequest -Uri "$BaseUrl/CoreHost/gql/query" -Body $json -Method 'POST' -WebSession $Session -ContentType "application/json; charset=utf-8"
|
