Chever-John commented on a change in pull request #6449: URL: https://github.com/apache/apisix/pull/6449#discussion_r814621554
########## File path: docs/zh/latest/router-radixtree.md ########## @@ -290,6 +292,56 @@ $ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f }' ``` +我们可以通过以下两种方式分别去验证 GraphQL 匹配: + +1. 使用 GraphQL 查询字符串 + + ```shell + $ curl -H 'content-type: application/graphql' -X POST http://127.0.0.1:9080/graphql -d ' + query getRepo { + owner { + name + } + repo { + created + } + }' + ``` + +2. 使用 JSON 格式 + + ```shell + $ curl -H 'content-type: application/json' -X POST http://127.0.0.1:9080/graphql --data '{"query": "query getRepo { owner {name } repo {created}}"}' + ``` Review comment: Solve it! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
