lrj
4 天以前 4fa9591629721797386fc11836e3a9deb69cd58c
1
2
3
4
5
6
7
8
9
10
11
$headers = @{
    "Content-Type" = "application/json"
}
 
$body = @{
    query = "query { __schema { types { name fields { name type { name } } } } }"
} | ConvertTo-Json
 
Write-Host "检查GraphQL Schema..."
$response = Invoke-RestMethod -Uri "http://localhost:8080/api/graphql" -Method POST -Body $body -Headers $headers
Write-Host "Schema检查完成"