{"id":47847,"date":"2023-07-02T08:40:22","date_gmt":"2023-10-15T10:46:36","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/"},"modified":"2024-04-30T11:36:37","modified_gmt":"2024-04-30T03:36:37","slug":"%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/","title":{"rendered":"\u5feb\u901f\u5b66\u4e60 GraphQL \u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\u8868\u9875\u300d"},"content":{"rendered":"<h2>\u9996\u5148<\/h2>\n<p>\u4e3a\u4e86\u60f3\u5b66\u4e60GraphQL\u7684JavaScript\u521d\u5b66\u8005\u51c6\u5907\u4e86\u4e00\u4e2a\u6559\u7a0b\u3002\u5728\u7406\u89e3\u4e4b\u524d\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5feb\u901f\u7684\u6559\u7a0b\uff0c\u51e0\u4e4e\u6240\u6709\u7684\u5185\u5bb9\u53ea\u9700\u590d\u5236\u548c\u7c98\u8d34\uff0c\u8ba9\u60a8\u5148\u4f53\u9a8c\u4e00\u4e0b\u201c\u8fd0\u884c\u7684\u611f\u89c9\u201d\u3002<\/p>\n<p>\u8fd9\u6b21\u7684\u4e3b\u9898\u662f\u90e8\u95e8\u4e00\u89c8\u9875\u9762\uff0c\u4ee5\u4f01\u4e1a\u5458\u5de5\u76ee\u5f55\u4e3a\u7075\u611f\u8bbe\u8ba1\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/3-0.png\" alt=\"2022-05-08_15h22_55.png\" \/><\/div>\n<p>\u867d\u7136\u79f0\u4e3a\u5458\u5de5\u540d\u5f55\uff0c\u4f46\u662f\u5e76\u6ca1\u6709\u663e\u793a\u6bcf\u4e2a\u5458\u5de5\u4e2a\u4eba\u7684\u4fe1\u606f\u90e8\u5206\uff0c\u8fd9\u4e9b\u5c06\u5728\u540e\u7eed\u7684\u4e0d\u540c\u6559\u7a0b\u4e2d\u8fdb\u884c\u521b\u5efa\u3002<\/p>\n<h3>\u8fc7\u53bb\u7684\u5185\u5bb9 de<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b3\u30d4\u30da\u3067\u7d20\u65e9\u304f\u5b66\u3076 GraphQL: Apollo Server Getting Started<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b3\u30d4\u30da\u3067\u7d20\u65e9\u304f\u5b66\u3076 GraphQL: Apollo Server Getting Resolver<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30b3\u30d4\u30da\u3067\u7d20\u65e9\u304f\u5b66\u3076 GraphQL: \u30b5\u30f3\u30d7\u30eb\u300c\u81ea\u5df1\u7d39\u4ecb\u30da\u30fc\u30b8\u300d<\/ul>\n<h3>\u9884\u5148\u51c6\u5907<\/h3>\n<p>\u8bf7\u786e\u8ba4\u5df2\u5b89\u88c5\u4e86node\u548cnpm\u3002<\/p>\n<h3>\u514b\u9686 git \u5b58\u50a8\u5e93<\/h3>\n<p>\u8bf7\u5728\u7ec8\u7aef\u4e0a\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git clone https:\/\/github.com\/richardimaoka\/tutorial-apollo-employee-division.git\r\ncd tutorial-apollo-employee-division\r\n<\/span><\/code><\/pre>\n<h2>1. \u8bbe\u7f6eGraphQL\u670d\u52a1\u5668<\/h2>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u50cf\u4e0b\u9762\u7684\u56fe\u7247\u4e00\u6837\uff0c\u540c\u65f6\u542f\u52a8\u56db\u4e2a\u8fdb\u7a0b\uff08\u4e0a\u65b9\uff09\u548c\u4e00\u4e2a\u7ec8\u7aef\uff08\u4e0b\u65b9\uff09\u3002\u867d\u7136\u603b\u6570\u662f\u4e94\u4e2a\uff0c\u770b\u8d77\u6765\u6709\u4e9b\u591a\uff0c\u4f46\u662f\u4f7f\u7528\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u4e0d\u7528\u62c5\u5fc3\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/14-0.png\" alt=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 1.png\" \/><\/div>\n<p>\u9996\u5148\u8ba9\u6211\u4eec\u6765\u8bbe\u7f6eGraphQL\u670d\u52a1\u5668\u3002<\/p>\n<p>\u8bf7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git apply patches\/201ea30.patch\r\ngit apply patches\/f482a1d.patch\r\ngit apply patches\/b979ec5.patch\r\ngit apply patches\/425a387.patch\r\ngit apply patches\/5847c01.patch\r\ngit apply patches\/ac56d80.patch\r\ncd server\r\nnpm install\r\nnpm run server-start\r\n<\/span><\/code><\/pre>\n<p>\u8bf7\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00 http:\/\/localhost:4000\/\u3002<\/p>\n<p>\u7ed3\u679c\uff1a\u5c06\u663e\u793a\u5982\u4e0b\u6240\u793a\u7684 Apollo Studio Explorer \u9875\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/20-0.png\" alt=\"2022-05-06_20h54_04.png\" \/><\/div>\n<p>\u8bf7\u70b9\u51fb\u201c\u67e5\u8be2\u670d\u52a1\u5668\u201d\u6309\u94ae\u3002<\/p>\n<p>\u7ed3\u679c\uff1a\u5c06\u8f6c\u5230\u4ee5\u4e0b\u5c4f\u5e55\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/23-0.png\" alt=\"2022-03-06_09h04_06.png\" \/><\/div>\n<p>\u8bf7\u5728 Apollo Studio Explorer \u4e2d\u8f93\u5165\u4ee5\u4e0b\u67e5\u8be2\u5e76\u70b9\u51fb\u8fd0\u884c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">{\r\n  hello\r\n}\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u4f60\u53ef\u4ee5\u4eceGraphQL\u670d\u52a1\u5668\u83b7\u53d6\u4ee5\u4e0b\u54cd\u5e94\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/27-0.png\" alt=\"2022-05-06_20h23_16.png\" \/><\/div>\n<p>\u6211\u5df2\u786e\u8ba4GraphQ\u670d\u52a1\u5668\u5df2\u7ecf\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p>\u8bf7\u4fdd\u6301\u8fd9\u4e2a\u6d41\u7a0b\u7684\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n<h2>2. \u5728\u670d\u52a1\u5668\u7aef\u5f15\u5165GraphQL\u4ee3\u7801\u751f\u6210\u3002<\/h2>\n<p>\u901a\u8fc7 codegen \u53ef\u4ee5\u81ea\u52a8\u4ece GraphQL \u7684 schema.graphql \u6587\u4ef6\u4e2d\u751f\u6210 TypeScript \u7684\u7c7b\u578b\u3002\u624b\u52a8\u7f16\u5199\u7c7b\u578b\u4e0d\u4ec5\u9ebb\u70e6\u800c\u4e14\u5bb9\u6613\u51fa\u9519\uff0c\u6240\u4ee5\u8ba9 codegen \u81ea\u52a8\u751f\u6210\u7c7b\u578b\u5427\u3002<\/p>\n<p>\u5f53\u5b9e\u9645\u67e5\u770b\u81ea\u52a8\u751f\u6210\u7684\u7c7b\u578b\u5b9a\u4e49\u65f6\uff0c\u5f88\u5bb9\u6613\u5c31\u80fd\u770b\u51fa\u5b83\u6709\u591a\u4e48\u65b9\u4fbf\u3002\u8ba9\u6211\u4eec\u7acb\u5373\u5f00\u59cb\u8fd0\u884c\u3002<\/p>\n<p>\u8bf7\u6253\u5f00\u4e00\u4e2a\u65b0\u7ec8\u7aef\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/34-0.png\" alt=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 2.png\" \/><\/div>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> git\u30ec\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\r\n<span class=\"gp\">cd \"$<\/span><span class=\"o\">(<\/span>git rev-parse <span class=\"nt\">--show-toplevel<\/span><span class=\"o\">)<\/span><span class=\"s2\">\"\r\n<\/span><span class=\"go\">git apply patches\/88b1ced.patch\r\ngit apply patches\/1f78fa0.patch\r\ngit apply patches\/af44310.patch\r\ngit apply patches\/1de3257.patch\r\ncd server\r\nnpm install\r\nnpm run server-generate\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u5728server\/generated\/graphql.ts\u6587\u4ef6\u4e2d\u81ea\u52a8\u751f\u6210\u4e86\u7c7b\u578b\u5b9a\u4e49\uff0c\u90a3\u5c31\u597d\u4e86\u3002<\/p>\n<p>\u8bf7\u5c06\u8be5\u8fdb\u7a0b\u4fdd\u6301\u5f00\u542f\u72b6\u6001\u3002<\/p>\n<h2>3. React \u5ba2\u6237\u7aef\u8bbe\u7f6e<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8bbe\u7f6eReact\u5ba2\u6237\u7aef\u3002<\/p>\n<p>\u8bf7\u60a8\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u7ec8\u7aef\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/42-0.png\" alt=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 3.png\" \/><\/div>\n<p>\u884c\u52a8\uff1a\u8bf7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git\u30ec\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\r\n<\/span><span class=\"gp\">cd \"$<\/span><span class=\"o\">(<\/span>git rev-parse <span class=\"nt\">--show-toplevel<\/span><span class=\"o\">)<\/span><span class=\"s2\">\"\r\n<\/span><span class=\"go\">git apply patches\/d569883.patch\r\ngit apply patches\/6186b50.patch\r\ngit apply patches\/bca253f.patch\r\ngit apply patches\/dcd6de3.patch\r\ncd client\r\nnpm install\r\nnpm run client-start\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u5728 http:\/\/localhost:3000\/ \u4e0a\u663e\u793a\u5982\u4e0b\u5185\u5bb9\uff0c\u5219\u8868\u793aOK\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/46-0.png\" alt=\"2022-05-06_20h00_38.png\" \/><\/div>\n<p>\u4ece\u8fd9\u4e2a\u663e\u793a\u7740React\u6807\u5fd7\u7684\u5c4f\u5e55\u4e0a\uff0c\u6211\u4eec\u6765\u5c06\u5c4f\u5e55\u663e\u793a\u53d8\u5f97\u7b80\u6d01\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u4ee5\u540e\u5bf9\u6e90\u4ee3\u7801\u7684\u66f4\u6539\u4f1a\u66f4\u52a0\u6e05\u6670\u660e\u4e86\u3002<\/p>\n<p>\u8bf7\u4fdd\u6301\u6b64\u8fdb\u7a0b\u8fd0\u884c\u3002<\/p>\n<p>\u8bf7\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u7ec8\u7aef\u7a97\u53e3\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/50-0.png\" alt=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 5.png\" \/><\/div>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git\u30ec\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\r\n<\/span><span class=\"gp\">cd \"$<\/span><span class=\"o\">(<\/span>git rev-parse <span class=\"nt\">--show-toplevel<\/span><span class=\"o\">)<\/span><span class=\"s2\">\"\r\n<\/span><span class=\"go\">git apply patches\/d2baf20.patch\r\ngit apply patches\/c5201f0.patch\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u4ee5\u4ee5\u4e0b\u65b9\u5f0f\u663e\u793a\uff0c\u5219\u8868\u793aOK\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/54-0.png\" alt=\"2022-05-06_21h29_54.png\" \/><\/div>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u8981\u63d2\u5165\u9875\u7709\u90e8\u5206\u3002<\/p>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git apply patches\/f2f7d08.patch\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u663e\u793a\u5982\u4e0b\uff0c\u5219\u8868\u793aOK\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/59-0.png\" alt=\"2022-05-08_14h41_01.png\" \/><\/div>\n<p>\u8ba9\u6211\u4eec\u5728App.tsx\u4e2d\u5c1d\u8bd5\u5f15\u5165GraphQL\u3002<\/p>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git apply patches\/a1d6ca9.patch\r\n<\/span><\/code><\/pre>\n<p>\u6211\u4eec\u5c06\u4ece\u8fd9\u91cc\u5f00\u59cb\uff0c\u8ba9\u5ba2\u6237\u7aef\u4e5f\u80fd\u591f\u4f7f\u7528\u901a\u8fc7GraphQL\u81ea\u52a8\u751f\u6210\u7684TypeScript\u7c7b\u578b\u5b9a\u4e49\u6765\u8fdb\u884c\u7f16\u7801\u3002\u4e3a\u6b64\uff0c\u8ba9\u6211\u4eec\u8fdb\u884ccodegen\u7684\u8bbe\u7f6e\u3002<\/p>\n<h2>4. \u5ba2\u6237\u7aefcodegen\u8bbe\u7f6e\u3002<\/h2>\n<p>\u4e0d\u4ec5\u670d\u52a1\u5668\u7aef\uff0c\u5ba2\u6237\u7aef\u4e5f\u53ef\u4ee5\u4f7f\u7528codegen\uff0c\u901a\u8fc7\u81ea\u52a8\u751f\u6210\u7684\u7c7b\u578b\u5b9a\u4e49\u53ef\u4ee5\u66f4\u8f7b\u677e\u5730\u907f\u514d\u624b\u5199\u65f6\u51fa\u73b0\u7684\u7c7b\u578b\u9519\u8bef\u3002<\/p>\n<p>\u52a8\u4f5c\uff1a\u8bf7\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u7ec8\u7aef\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/67-0.png\" alt=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 4.png\" \/><\/div>\n<p>\u64cd\u4f5c\uff1a\u8bf7\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> git\u30ec\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\r\n<span class=\"gp\">cd \"$<\/span><span class=\"o\">(<\/span>git rev-parse <span class=\"nt\">--show-toplevel<\/span><span class=\"o\">)<\/span><span class=\"s2\">\"\r\n<\/span><span class=\"go\">git apply patches\/6dae1d9.patch\r\ngit apply patches\/0cdd81d.patch\r\ngit apply patches\/56bb5dc.patch\r\ngit apply patches\/db72e9f.patch\r\n<\/span><\/code><\/pre>\n<p>\u7531\u4e8eGraphQL\u6a21\u5f0f\u53ea\u6709\u4e00\u4e2a\u540d\u4e3ahello\u7684\u5b57\u7b26\u4e32\u5b57\u6bb5\uff0c\u8fd9\u53ea\u662f\u4e00\u4e2a\u6743\u5b9c\u4e4b\u8ba1\uff0c\u6211\u4eec\u5c06\u5bf9\u5176\u8fdb\u884c\u66f4\u65b0\u3002<\/p>\n<p>\u8bf7\u6267\u884c\u4e0b\u5217\u6307\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git apply patches\/f28d1c1.patch\r\n<\/span><\/code><\/pre>\n<p>\u5728\u8fd9\u79cd\u72b6\u6001\u4e0b\uff0c\u5982\u679c\u6267\u884c\u5ba2\u6237\u7aefcodegen\u64cd\u4f5c\uff0c\u5c06\u4f1a\u53d1\u751f\u9519\u8bef\u3002\u8ba9\u6211\u4eec\u5728\u4e0b\u9762\u9a8c\u8bc1\u4e00\u4e0b\u3002<\/p>\n<p>\u52a8\u4f5c\uff1a\u8bf7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">cd client\r\nnpm install\r\nnpm run client-codegen \r\nnpm run client-generate\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u53d1\u751f\u9519\u8bef\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\"> Found 1 error\r\n<\/span><span class=\"gp\">#<\/span>\r\n<span class=\"go\">  \u2716 src\/generated\/graphql.ts\r\n    Error: \r\n          Unable to find any GraphQL type definitions for the following pointers:\r\n       \r\n              - src\/**\/*.tsx\r\n<\/span><\/code><\/pre>\n<p>\u8bf7\u5c06\u6b64\u8fc7\u7a0b\u4fdd\u6301\u5f00\u542f\u72b6\u6001\u3002<\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u5148\u524d\u7684\u9519\u8bef\uff0c\u5728\u5ba2\u6237\u7aef\u4e0a\u5b9a\u4e49\u7b2c\u4e00\u4e2aGraphQL\u7247\u6bb5\u3002<\/p>\n<p>\u52a8\u4f5c\uff1a\u8bf7\u5c06\u64cd\u4f5c\u8f6c\u79fb\u5230\u4ee5\u524d\u6253\u5f00\u7684\u53e6\u4e00\u4e2a\u7ec8\u7aef\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/81-0.png\" alt=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 5.png\" \/><\/div>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> git\u30ec\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\r\n<span class=\"gp\">cd \"$<\/span><span class=\"o\">(<\/span>git rev-parse <span class=\"nt\">--show-toplevel<\/span><span class=\"o\">)<\/span><span class=\"s2\">\"\r\n<\/span><span class=\"go\">git apply patches\/29c4cb7.patch\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u5728client\/generated\/graphql.ts\u6587\u4ef6\u4e2d\u81ea\u52a8\u751f\u6210\u4e86\u7c7b\u578b\u5b9a\u4e49\uff0c\u90a3\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<h2>5. \u6e10\u8fdb\u5f0f\u5f00\u53d1 sh\u00ec f\u0101)<\/h2>\n<p>\u597d\u4e86\uff0c\u7ec8\u4e8e\u4ece\u8fd9\u91cc\u5f00\u59cb\u8fdb\u884cReact\u5ba2\u6237\u7aef\u754c\u9762\u7684\u9010\u6b65\u53d8\u5316\uff0c\u8fdb\u884c\u589e\u91cf\u5f00\u53d1\u3002\u7531\u4e8e\u6e90\u4ee3\u7801\u7684\u66f4\u6539\u4f1a\u7acb\u5373\u53cd\u6620\u5728\u754c\u9762\u7684\u53d8\u5316\u4e2d\uff0c\u6240\u4ee5\u6211\u76f8\u4fe1\u60a8\u4e00\u5b9a\u4f1a\u611f\u5230\u6709\u6210\u5c31\u611f\u3002<\/p>\n<p>\u6211\u5011\u5c07\u7e7c\u7e8c\u4f7f\u7528\u4e4b\u524d\u958b\u555f\u7684\u56db\u500b\u7a0b\u5e8f\u6240\u4e0d\u540c\u7684\u7d42\u7aef\u6a5f\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/88-0.png\" alt=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 5.png\" \/><\/div>\n<p>\u8bf7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<p>\u8ba9\u6211\u4eec\u9996\u5148\u663e\u793a\u4eceGraphQL\u670d\u52a1\u5668\u83b7\u53d6\u7684\u90e8\u95e8\u540d\u79f0\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">#<\/span> git\u30ec\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\r\n<span class=\"gp\">cd \"$<\/span><span class=\"o\">(<\/span>git rev-parse <span class=\"nt\">--show-toplevel<\/span><span class=\"o\">)<\/span><span class=\"s2\">\"\r\n<\/span><span class=\"go\">git apply patches\/fc58873.patch\r\ngit apply patches\/fc67eea.patch\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u663e\u793a\u5982\u4e0b\uff0c\u5c31\u53ef\u4ee5\u4e86<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/93-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u63a5\u4e0b\u6765\uff0c\u5c06\u90e8\u95e8\u540d\u79f0\u663e\u793a\u4e3a\u65e5\u8bed\u3002<\/p>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git apply patches\/8af8eb9.patch\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u663e\u793a\uff0c\u5219\u4e3a\u6b63\u5e38\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/98-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u8ba9\u6211\u4eec\u68b3\u7406\u4e00\u4e0bDivisionCard\u7684\u5916\u89c2\u3002<\/p>\n<p>\u884c\u52a8\uff1a\u8bf7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git apply patches\/c40553d.patch\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u53ea\u9700\u8981\u4ee5\u4ee5\u4e0b\u65b9\u5f0f\u663e\u793a\u5373\u53ef\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/103-0.png\" alt=\"2022-05-08_15h01_24.png\" \/><\/div>\n<p>\u8ba9\u6211\u4eec\u663e\u793a\u6bcf\u4e2a\u90e8\u95e8\u4e2d\u7684\u90e8\u7f72\u6570\u91cf\u548c\u4eba\u5458\u6570\u91cf\u3002\u6211\u4eec\u5c06\u5728GraphQL\u4e2d\u6dfb\u52a0\u5b57\u6bb5numDepartments\u548cnumMembers\u3002<\/p>\n<p>\u8bf7\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git apply patches\/a806910.patch\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u663e\u793a\u5982\u4e0b\u5185\u5bb9\uff0c\u5219\u8868\u793a\u6b63\u5e38\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/108-0.png\" alt=\"2022-05-08_15h00_54.png\" \/><\/div>\n<p>\u8ba9\u6211\u4eec\u5728\u6bcf\u4e2a\u90e8\u95e8\u7684\u5361\u7247\u53f3\u4e0b\u89d2\u4e5f\u663e\u793a\u82f1\u6587\u90e8\u95e8\u540d\u3002\u6211\u4eec\u5c06\u5728GraphQL\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u540d\u4e3a divisionDisplayNameEn \u7684\u5b57\u6bb5\u3002<\/p>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git apply patches\/737806f.patch\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u4ee5\u4e0b\u7684\u5185\u5bb9\u663e\u793a\u51fa\u6765\uff0c\u5c31\u8868\u793aOK\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/113-0.png\" alt=\"2022-05-08_15h19_35.png\" \/><\/div>\n<p>\u6700\u540e\uff0c\u8ba9\u6211\u4eec\u5c1d\u8bd5\u589e\u52a0\u663e\u793a\u7684\u90e8\u95e8\u6570\u91cf\u3002\u4e3a\u6b64\uff0c\u6211\u4eec\u9700\u8981\u589e\u52a0GraphQL\u67e5\u8be2\u7684&#8221;divisions&#8221;\u5b57\u6bb5\u8fd4\u56de\u7684\u5143\u7d20\u6570\u91cf\u3002<\/p>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u6307\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"go\">git apply patches\/3f1bc4f.patch\r\n<\/span><\/code><\/pre>\n<p>\u7ed3\u679c\uff1a\u5982\u679c\u663e\u793a\u5982\u4e0b\uff0c\u5219\u8868\u793a\u4e00\u5207\u6b63\u5e38<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/118-0.png\" alt=\"2022-05-08_15h22_55.png\" \/><\/div>\n<h2>6. \u603b\u7ed3<\/h2>\n<p>\u6211\u5148\u524d\u4ecb\u7ecd\u4e86\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u5728React\u5ba2\u6237\u7aef\u548cGraphQL\u670d\u52a1\u5668\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u6765\u6784\u5efa\u4e00\u4e2a\u4ee5\u4f01\u4e1a\u5458\u5de5\u540d\u518c\u4e3a\u5f62\u8c61\u7684\u90e8\u95e8\u5217\u8868\u9875\u9762\u3002<\/p>\n<h3>\u4e0b\u4e00\u4e2a\u6559\u7a0b<\/h3>\n<p>(\u5236\u4f5c\u4e2d) \u8bbe\u8ba1\u6210\u7c7b\u4f3c\u4f01\u4e1a\u5458\u5de5\u540d\u518c\u98ce\u683c\u7684\uff0c\u90e8\u95e8\u5185\u7684\u5458\u5de5\u5217\u8868\u9875\u9762<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u4e3a\u4e86\u60f3\u5b66\u4e60GraphQL\u7684JavaScript\u521d\u5b66\u8005\u51c6\u5907\u4e86\u4e00\u4e2a\u6559\u7a0b\u3002\u5728\u7406\u89e3\u4e4b\u524d\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5feb\u901f\u7684 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-47847","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5feb\u901f\u5b66\u4e60 GraphQL \u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\u8868\u9875\u300d - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5feb\u901f\u5b66\u4e60-graphql-\u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5feb\u901f\u5b66\u4e60 GraphQL \u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\u8868\u9875\u300d\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u4e3a\u4e86\u60f3\u5b66\u4e60GraphQL\u7684JavaScript\u521d\u5b66\u8005\u51c6\u5907\u4e86\u4e00\u4e2a\u6559\u7a0b\u3002\u5728\u7406\u89e3\u4e4b\u524d\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5feb\u901f\u7684 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5feb\u901f\u5b66\u4e60-graphql-\u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-15T10:46:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T03:36:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/3-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/\",\"name\":\"\u5feb\u901f\u5b66\u4e60 GraphQL \u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\u8868\u9875\u300d - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-15T10:46:36+00:00\",\"dateModified\":\"2024-04-30T03:36:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5feb\u901f\u5b66\u4e60 GraphQL \u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\u8868\u9875\u300d\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5feb\u901f\u5b66\u4e60 GraphQL \u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\u8868\u9875\u300d - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5feb\u901f\u5b66\u4e60-graphql-\u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5feb\u901f\u5b66\u4e60 GraphQL \u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\u8868\u9875\u300d","og_description":"\u9996\u5148 \u4e3a\u4e86\u60f3\u5b66\u4e60GraphQL\u7684JavaScript\u521d\u5b66\u8005\u51c6\u5907\u4e86\u4e00\u4e2a\u6559\u7a0b\u3002\u5728\u7406\u89e3\u4e4b\u524d\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5feb\u901f\u7684 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5feb\u901f\u5b66\u4e60-graphql-\u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-15T10:46:36+00:00","article_modified_time":"2024-04-30T03:36:37+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d813c913a08637a6acaf1\/3-0.png"}],"author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/","name":"\u5feb\u901f\u5b66\u4e60 GraphQL \u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\u8868\u9875\u300d - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-15T10:46:36+00:00","dateModified":"2024-04-30T03:36:37+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5feb\u901f\u5b66\u4e60 GraphQL \u7684\u62f7\u8d1d\u7c98\u8d34\uff1a\u793a\u4f8b\u300c\u5458\u5de5\u8bb0\u5f55\u548c\u90e8\u95e8\u5217\u8868\u9875\u300d"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0-graphql-%e7%9a%84%e6%8b%b7%e8%b4%9d%e7%b2%98%e8%b4%b4%ef%bc%9a%e7%a4%ba%e4%be%8b%e3%80%8c%e5%91%98%e5%b7%a5%e8%ae%b0%e5%bd%95%e5%92%8c%e9%83%a8%e9%97%a8%e5%88%97\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=47847"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47847\/revisions"}],"predecessor-version":[{"id":91674,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47847\/revisions\/91674"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=47847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=47847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=47847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}