{"id":1781,"date":"2022-12-03T11:28:45","date_gmt":"2022-12-03T03:28:45","guid":{"rendered":"https:\/\/qishiya.com\/?p=1781"},"modified":"2022-12-03T11:28:45","modified_gmt":"2022-12-03T03:28:45","slug":"%e4%b8%ad%e6%96%87-wordpress-graphql-%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"https:\/\/qishiya.com\/?p=1781","title":{"rendered":"<strong>\u4e2d\u6587 wordpress GraphQL \u62a5\u9519<\/strong>"},"content":{"rendered":"\n<p>\u7528\u8dd1 nextjs \u7684\u4e00\u4e2a demo\uff0c\u7528 nextjs+wordpress+GraphQL \u62a5\u9519\uff0c\u6444\u6c0f\u7684\u539f\u56e0\u662f\u8bf4\u547d\u540d\u7684\u95ee\u9898\uff0c\u6211\u628a\u4e3b\u9898\u66f4\u6539\u6210\u82f1\u6587\uff0c\u8fd9\u4e2a\u6444\u6c0f\u5c31\u6d88\u606f\u4e86\uff0cGraphiQL IDE \u5c31\u53ef\u4ee5\u6b63\u5e38\u5c55\u793a\u4e86\uff0c\u5177\u4f53\u539f\u56e0\u8fd8\u6ca1\u65f6\u95f4\u6765\u67e5\uff0c\u53d1\u73b0\u6709\u7528\u6237\u63d0\u4ea4\u4e86\u76f8\u5173 case\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Uncaught (in promise) GraphQLError: Names must only contain &#91;_a-zA-Z0-9] but \"Template_\u5c01\u9762\u6a21\u677f\" does not.<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/github.com\/wp-graphql\/wp-graphql\/issues\/2492\">GraphQL IDE got broken when site locale is CJK \u00b7 Issue #2492 \u00b7 wp-graphql\/wp-graphql \u00b7 GitHub<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/tutu-1252436247.cos.ap-beijing.myqcloud.com\/uPic\/Z4BH0h.png\" alt=\"Z4BH0h\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u51b3\u529e\u6cd5<\/h2>\n\n\n\n<p>\u628a\u4e3b\u9898\u66f4\u6539\u6210\u82f1\u6587\u5c31\u89e3\u51b3\u95ee\u9898\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u8dd1 nextjs \u7684\u4e00\u4e2a demo\uff0c\u7528 nextjs+wordpress+GraphQL \u62a5\u9519\uff0c\u6444\u6c0f\u7684\u539f\u56e0\u662f\u8bf4\u547d\u540d\u7684\u95ee\u9898\uff0c\u6211\u628a\u4e3b\u9898\u66f4\u6539\u6210\u82f1\u6587\uff0c\u8fd9\u4e2a\u6444\u6c0f\u5c31\u6d88\u606f\u4e86\uff0cGraphiQL IDE \u5c31\u53ef\u4ee5\u6b63\u5e38\u5c55\u793a\u4e86\uff0c\u5177\u4f53\u539f\u56e0\u8fd8\u6ca1\u65f6\u95f4\u6765\u67e5\uff0c\u53d1\u73b0\u6709\u7528\u6237\u63d0 &#8230; <a title=\"\u4e2d\u6587 wordpress GraphQL \u62a5\u9519\" class=\"read-more\" href=\"https:\/\/qishiya.com\/?p=1781\" aria-label=\"\u66f4\u591a \u4e2d\u6587 wordpress GraphQL \u62a5\u9519\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"templates\/template-full-width.php","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[550,63,552],"class_list":["post-1781","post","type-post","status-publish","format-standard","hentry","category-5","tag-graphql","tag-wordpress","tag-552"],"_links":{"self":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1781"}],"version-history":[{"count":1,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1781\/revisions"}],"predecessor-version":[{"id":1782,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1781\/revisions\/1782"}],"wp:attachment":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}