lrj
3 天以前 c61d4fe27c97d2ecc907756aa571a4ef14a7b9b6
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检查完成"