
{"id":10593,"date":"2026-06-19T23:35:17","date_gmt":"2026-06-19T14:35:17","guid":{"rendered":"https:\/\/techmania.jp\/blog\/?p=10593"},"modified":"2026-06-19T23:35:19","modified_gmt":"2026-06-19T14:35:19","slug":"graphql","status":"publish","type":"post","link":"https:\/\/techmania.jp\/blog\/graphql\/","title":{"rendered":"GraphQL\u3068\u306f\uff1f\u30e1\u30ea\u30c3\u30c8\u3084\u7279\u5fb4\u3001\u5177\u4f53\u7684\u306a\u4f7f\u3044\u65b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u8fd1\u5e74\u3001Web\u30b5\u30fc\u30d3\u30b9\u3084\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3067\u306f\u3001\u52b9\u7387\u7684\u306a\u30c7\u30fc\u30bf\u901a\u4fe1\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u3055\u307e\u3056\u307e\u306aAPI\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>\u5f93\u6765\u306fREST API\u304c\u5e83\u304f\u63a1\u7528\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u8fd1\u5e74\u3067\u306f\u3088\u308a\u67d4\u8edf\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u308b\u300cGraphQL\u300d\u304c\u6ce8\u76ee\u3092\u96c6\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u3001GraphQL\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u304b\u3089REST API\u3068\u306e\u9055\u3044\u3001\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8\u3001\u57fa\u672c\u64cd\u4f5c\u304b\u3089\u5b9f\u8df5\u7684\u306a\u64cd\u4f5c\u65b9\u6cd5\u307e\u3067\u3001\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">GraphQL\u3068\u306f<\/h2>\n\n\n\n<h3 id=\"outline__1_1\" class=\"wp-block-heading\">\u6b21\u4e16\u4ee3\u306eWebAPI\u898f\u683c\u300cGraphQL API\u300d\u306e\u6982\u8981<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GraphQL\u306f\u3001Meta (\u65e7Facebook) \u793e\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305f\u3001Web API\u306e\u305f\u3081\u306e\u30af\u30a8\u30ea\u8a00\u8a9e\u304a\u3088\u3073\u5b9f\u884c\u74b0\u5883\u3067\u3059\u3002<br>\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u306e\u307f\u30921\u56de\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u53d6\u5f97\u3067\u304d\u308b\u4ed5\u7d44\u307f\u3068\u3057\u3066\u516c\u958b\u3055\u308c\u3001\u7279\u306b\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u6301\u3064SNS\u3084EC\u30b5\u30a4\u30c8\u306a\u3069\u3067\u5229\u7528\u3055\u308c\u3066\u304a\u308a\u3001\u591a\u304f\u306e\u4f01\u696d\u304c\u5c0e\u5165\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">REST API\u3067\u306f\u3001\u5404\u30ea\u30bd\u30fc\u30b9\u304c\u56fa\u6709\u306eURL\u3067\u8b58\u5225\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306eURL\u306b\u5bfe\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br>\u305d\u306e\u969b\u306b\u3001\u30ea\u30bd\u30fc\u30b9\u306b\u95a2\u3059\u308b\u30c7\u30fc\u30bf\u3092\u5168\u3066\u53d6\u5f97\u3059\u308b\u305f\u3081\u3001\u5fc5\u8981\u306e\u306a\u3044\u60c5\u5831\u307e\u3067\u542b\u307e\u308c\u3066\u3057\u307e\u3046\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u53d6\u5f97\u3057\u305f\u3044\u30c7\u30fc\u30bf\u306e\u5185\u5bb9\u306b\u3088\u3063\u3066\u306f\u3001\u8907\u6570\u306eURL\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>GET \/users\/1\nGET \/users\/1\/posts\nGET \/posts\/10\/comments<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">GET \/users\/1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">GET \/users\/1\/posts<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">GET \/posts\/10\/comments<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3001GraphQL\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u305f\u3081\u3001\u5c11\u306a\u3044\u56de\u6570\u3067\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u306e\u307f\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>query {\n  user(id: 1) {\n    name\n    posts {\n      title\n      comments {\n        text\n      }\n    }\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">query {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  user(id: 1) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    name<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    posts {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      title<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      comments {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        text<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">GraphQL\u306fHTTP\u901a\u4fe1\u4e0a\u3067\u52d5\u4f5c\u3057\u307e\u3059\u304c\u3001\u300c\u3069\u3093\u306a\u30c7\u30fc\u30bf\u304c\u6b32\u3057\u3044\u304b\u300d\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u304c\u6307\u5b9a\u3067\u304d\u308b\u70b9\u304cREST API\u3068\u306e\u5927\u304d\u306a\u9055\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__1_2\" class=\"wp-block-heading\">GraphQL\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3068\u69cb\u6210<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GraphQL\u3067\u306f\u3001\u5927\u304d\u304f2\u3064\u306e\u5f79\u5272\u306b\u5206\u3051\u3066API\u3092\u8a2d\u8a08\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b9\u30ad\u30fc\u30de\uff08Schema\uff09 \u2026 \u3069\u3093\u306a\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u64cd\u4f5c\u3067\u304d\u308b\u304b\u3092\u5b9a\u7fa9<\/li>\n\n\n\n<li>\u30ea\u30be\u30eb\u30d0\uff08Resolver\uff09 \u2026 \u5b9f\u969b\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u64cd\u4f5c\u3059\u308b\u51e6\u7406\u3092\u5b9f\u88c5<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3010\u30b9\u30ad\u30fc\u30de\uff08Schema\uff09\u3011<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">API\u3067\u53d6\u5f97\u3059\u308b\u30c7\u30fc\u30bf\u306e\u69cb\u9020\u3084\u64cd\u4f5c\u65b9\u6cd5\u306a\u3069\u3092\u5b9a\u7fa9\u3059\u308b\u3001\u3044\u308f\u3086\u308bAPI\u306e\u300c\u8a2d\u8a08\u56f3\u300d\u3067\u3059\u3002<br>GraphQL schema Language\u3068\u3044\u3046\u72ec\u81ea\u306e\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u3001API\u306e\u4ed5\u69d8\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly># \u53d6\u5f97\u3059\u308b\u30c7\u30fc\u30bf\u306e\u69cb\u9020\u3092\u5b9a\u7fa9\ntype User {\n  id: ID!\n  name: String!\n  age: Int\n}\n\n# \u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u5b9a\u7fa9\ntype Query {\n  users: &#91;User&#93;!\n  user(id: ID!): User\n}\n\n# \u8ffd\u52a0\u3084\u524a\u9664\u306a\u3069\u306e\u64cd\u4f5c\u65b9\u6cd5\u3092\u5b9a\u7fa9\ntype Mutation {\n    addUser(name: String!, age: Int): User!\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\"># \u53d6\u5f97\u3059\u308b\u30c7\u30fc\u30bf\u306e\u69cb\u9020\u3092\u5b9a\u7fa9<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">type User {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  id: ID!<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  name: String!<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  age: Int<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"># \u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u5b9a\u7fa9<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">type Query {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  users: &#91;User&#93;!<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  user(id: ID!): User<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"># \u8ffd\u52a0\u3084\u524a\u9664\u306a\u3069\u306e\u64cd\u4f5c\u65b9\u6cd5\u3092\u5b9a\u7fa9<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">type Mutation {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    addUser(name: String!, age: Int): User!<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u969b\u306f\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u305f\u30b9\u30ad\u30fc\u30de\u306b\u57fa\u3065\u3044\u3066\u30af\u30a8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3010\u30ea\u30be\u30eb\u30d0\uff08Resolver\uff09\u3011<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u305f\u3082\u306e\u3092\u30ea\u30be\u30eb\u30d0\u3068\u547c\u3073\u307e\u3059\u3002<br>JavaScript\u3084Python\u306a\u3069\u306e\u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u8a00\u3046\u6240\u306e\u3001\u30af\u30e9\u30b9\u304c\u4fdd\u6301\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3057\u305f\u3082\u306e\u304c\u30b9\u30ad\u30fc\u30de\u306a\u306e\u306b\u5bfe\u3057\u3001\u30e1\u30bd\u30c3\u30c9\u5185\u306e\u5b9f\u51e6\u7406\u3092\u5b9a\u7fa9\u3057\u305f\u3082\u306e\u304c\u30ea\u30be\u30eb\u30d0\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30ad\u30fc\u30de\u3067 Query\u3084Mutation\u306a\u3069\u306e\u30c7\u30fc\u30bf\u64cd\u4f5c\u306b\u95a2\u3059\u308b\u578b\u3092\u5b9a\u7fa9\u3057\u305f\u5834\u5408\u3001\u540c\u540d\u306e\u95a2\u6570\u3092\u30ea\u30be\u30eb\u30d0\u306b\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>const resolvers = {\n   Query: {\n     users: () => users,\n     user: (_, { id }) => users.find((user) => user.id === id)\n   }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">const resolvers = {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">   Query: {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">     users: () =&gt; users,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">     user: (_, { id }) =&gt; users.find((user) =&gt; user.id === id)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">   }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">GraphQL\u3068REST API\u306e\u9055\u3044<\/h2>\n\n\n\n<h3 id=\"outline__2_1\" class=\"wp-block-heading\">\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff08URL\uff09\u306e\u8a2d\u8a08\u306b\u304a\u3051\u308b\u9055\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">REST API\u3067\u306f\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3054\u3068\u306b\u30ea\u30bd\u30fc\u30b9\u306e\u5185\u5bb9\u304c\u56fa\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001\u53d6\u5f97\u5185\u5bb9\u304c\u8907\u96d1\u5316\u3059\u308b\u307b\u3069\u3001\u591a\u304f\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3001GraphQL\u306f REST API\u3068\u306f\u7570\u306a\u308a\u3001\u5358\u4e00\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306e\u307f\u3092\u5229\u7528\u3057\u307e\u3059\u3002<br>\u30ea\u30bd\u30fc\u30b9\u3054\u3068\u306b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u3044\u5206\u3051\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306b\u9001\u308b\u30af\u30a8\u30ea\u306e\u5185\u5bb9\u306b\u3088\u3063\u3066\u53d6\u5f97\u3059\u308b\u30c7\u30fc\u30bf\u3092\u9078\u5225\u3059\u308b\u306e\u304cGraphQL\u306e\u7279\u5fb4\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__2_2\" class=\"wp-block-heading\">\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u65b9\u6cd5\u306b\u304a\u3051\u308b\u9055\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u8ff0\u3057\u305f\u3088\u3046\u306b\u3001REST API\u306f\u53d6\u5f97\u3059\u308b\u30c7\u30fc\u30bf\u306e\u5185\u5bb9\u306b\u3088\u3063\u3066\u306f\u8907\u6570\u56de\u306e\u901a\u4fe1\u304c\u5fc5\u8981 (\u30a2\u30f3\u30c0\u30fc\u30d5\u30a7\u30c3\u30c1) \u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br>\u307e\u305f\u3001\u30ea\u30bd\u30fc\u30b9\u3054\u3068\u306b\u53d6\u5f97\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u304c\u56fa\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u5fc5\u8981\u306e\u306a\u3044\u60c5\u5831\u307e\u3067\u542b\u307e\u308c\u308b (\u30aa\u30fc\u30d0\u30fc\u30d5\u30a7\u30c3\u30c1) \u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001\u3068\u3042\u308b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u3063\u305f\u5834\u5408\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9a\u3081\u3089\u308c\u3066\u3044\u305f\u5834\u5408\u3001name\u3060\u3051\u304c\u6b32\u3057\u3044\u3068\u601d\u3063\u3066\u3044\u3066\u3082\u305d\u306e\u60c5\u5831\u3060\u3051\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u305a\u3001\u5b9a\u3081\u3089\u308c\u3066\u3044\u308b\u69cb\u9020\u306e\u901a\u308a\u306b\u30c7\u30fc\u30bf\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>{\n  id\n  name\n  age\n  address\n  phone\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  id<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  name<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  age<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  address<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  phone<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">GraphQL \u306e\u5834\u5408\u306f\u3001User\u578b\u306e\u4e2d\u304b\u3089 name\u306e\u307f\u3001Posts\u578b\u306e\u4e2d\u304b\u3089 title \u3068\u306e\u307f\u3068\u3044\u3063\u305f\u3088\u3046\u306b\u3001\u8907\u6570\u306e\u578b\u306b\u5206\u304b\u308c\u308b\u30c7\u30fc\u30bf\u3082\u4e00\u5ea6\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u307e\u3068\u3081\u3066\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>query {\n  user(id: 1) {\n    name\n    posts {\n      title\n    }\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">query {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  user(id: 1) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    name<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    posts {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      title<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">GraphQL\u306e\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8<\/h2>\n\n\n\n<h3 id=\"outline__3_1\" class=\"wp-block-heading\">GraphQL\u3092\u63a1\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GraphQL\u3092\u63a1\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u306f\u3001\u4e3b\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3060\u3051\u3092\u53d6\u5f97\u3067\u304d\u308b \u2026 \u901a\u4fe1\u91cf\u306e\u5236\u9650\u306b\u7e4b\u304c\u308b<\/li>\n\n\n\n<li>API\u306e\u547c\u3073\u51fa\u3057\u56de\u6570\u3092\u6e1b\u3089\u305b\u308b \u2026 \u30b5\u30fc\u30d0\u30fc\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u8ca0\u8377\u3092\u6291\u3048\u3089\u308c\u308b<\/li>\n\n\n\n<li>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u306e\u76f8\u6027\u304c\u3044\u3044 \u2026 \u753b\u9762\u306b\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u305d\u306e\u307e\u307e\u30af\u30a8\u30ea\u3068\u3057\u3066\u8a18\u8ff0\u3067\u304d\u308b<\/li>\n\n\n\n<li>\u578b\u5b89\u5168\u6027\u304c\u3042\u308b \u2026 \u30b9\u30ad\u30fc\u30de\u306b\u3088\u3063\u3066\u5404\u30c7\u30fc\u30bf\u306e\u578b\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30a8\u30e9\u30fc\u304c\u9632\u304e\u3084\u3059\u3044<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30ad\u30fc\u30de\u305d\u306e\u3082\u306e\u304cAPI\u4ed5\u69d8\u66f8\u3068\u306a\u308b\u305f\u3081\u3001\u69cb\u9020\u3092\u8996\u899a\u7684\u306b\u7406\u89e3\u3057\u3084\u3059\u3044\u306e\u3082\u30e1\u30ea\u30c3\u30c8\u306e1\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_2\" class=\"wp-block-heading\">GraphQL\u3092\u63a1\u7528\u3059\u308b\u30c7\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GraphQL\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306e\u67d4\u8edf\u6027\u304c\u9ad8\u3044\u53cd\u9762\u3001\u4ee5\u4e0b\u306e\u30c7\u30e1\u30ea\u30c3\u30c8\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u9ad8\u3044 \u2026 \u30b9\u30ad\u30fc\u30de\u3084\u30ea\u30be\u30eb\u30d0\u3001\u30af\u30a8\u30ea\u306e\u66f8\u304d\u65b9\u306a\u3069\u3001\u899a\u3048\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3053\u3068\u304c\u591a\u3044<\/li>\n\n\n\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u9762\u306e\u30ea\u30b9\u30af\u304c\u3042\u308b \u2026 \u30af\u30a8\u30ea\u306e\u67d4\u8edf\u6027\u306e\u9ad8\u3055\u3092\u5229\u7528\u3057\u3066\u3001\u4e0d\u6b63\u306a\u30af\u30a8\u30ea\u304c\u5b9f\u884c\u3055\u308c\u308b\u6050\u308c\u304c\u3042\u308b<\/li>\n\n\n\n<li>\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u8907\u96d1\u306b\u306a\u308a\u3084\u3059\u3044 \u2026 \u5358\u4e00\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u306a\u308b\u305f\u3081\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u96e3\u3057\u304f\u306a\u308b\u5834\u5408\u304c\u3042\u308b<\/li>\n\n\n\n<li>\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u6642\u9593\u304c\u304b\u304b\u308a\u3084\u3059\u3044 \u2026 \u5fc5\u8981\u9805\u76ee\u3092\u307e\u3068\u3081\u3066\u53d6\u5f97\u3059\u308b\u305f\u3081\u3001\u53d6\u5f97\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u5834\u5408\u304c\u3042\u308b<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u53d6\u5f97\u3092\u5fc5\u8981\u3068\u3057\u306a\u3044\u5c0f\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306e\u5834\u5408\u3001\u5c0e\u5165\u3084API\u306e\u8a2d\u8a08\u306b\u304b\u304b\u308b\u30b3\u30b9\u30c8\u304c\u958b\u767a\u898f\u6a21\u306b\u898b\u5408\u308f\u305a\u3001\u304b\u3048\u3063\u3066\u52b9\u7387\u304c\u4e0b\u304c\u3063\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\">GraphQL\u306e3\u3064\u306e\u57fa\u672c\u64cd\u4f5c<\/h2>\n\n\n\n<h3 id=\"outline__4_1\" class=\"wp-block-heading\">\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u3092\u884c\u3046\u300cQuery\u300d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">REST API\u306eGET\u306b\u76f8\u5f53\u3059\u308b\u306e\u304c\u3001Query\u3067\u3059\u3002<br>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u53d6\u5f97\u3057\u305f\u3044\u30c7\u30fc\u30bf\u306e\u5185\u5bb9\u3092 <code>query {}<\/code> \u3067\u56f2\u3063\u3066\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>query {\n  books {\n    title\n    author\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">query {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  books {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    title<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    author<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u5b9f\u884c\u7d50\u679c<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>{\n  \"data\": {\n    \"books\": &#91;\n      {\n        \"title\": \"GraphQL\u5165\u9580\",\n        \"author\": \"\u5c71\u7530\"\n      }\n    &#93;\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  &quot;data&quot;: {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    &quot;books&quot;: &#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        &quot;title&quot;: &quot;GraphQL\u5165\u9580&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        &quot;author&quot;: &quot;\u5c71\u7530&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    &#93;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 id=\"outline__4_2\" class=\"wp-block-heading\">\u30c7\u30fc\u30bf\u306e\u4f5c\u6210\u30fb\u66f4\u65b0\u30fb\u524a\u9664\u3092\u884c\u3046\u300cMutation\u300d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">REST API\u306ePOST\u3001PUT\u3001DELETE\u306b\u76f8\u5f53\u3059\u308b\u306e\u304c\u3001Mutation\u3067\u3059\u3002<br>\u30c7\u30fc\u30bf\u4f5c\u6210\u30fb\u66f4\u65b0\u30fb\u524a\u9664\u306f\u5168\u3066 Mutation\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>mutation {\n  createBook(\n    title: \"AI\u5165\u9580\"\n    author: \"\u7530\u4e2d\"\n  ) {\n    id\n    title\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">mutation {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  createBook(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    title: &quot;AI\u5165\u9580&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    author: &quot;\u7530\u4e2d&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  ) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    id<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    title<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 id=\"outline__4_3\" class=\"wp-block-heading\">\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u3092\u53ef\u80fd\u306b\u3059\u308b\u300cSubscription\u300d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u30c7\u30fc\u30bf\u3092\u53d7\u4fe1\u3057\u305f\u3044\u5834\u5408\u306b\u4f7f\u7528\u3059\u308b\u306e\u304c\u3001Subscription\u3067\u3059\u3002<br>\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30c7\u30fc\u30bf\u5909\u66f4\u306a\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u767a\u751f\u3057\u305f\u969b\u306b\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>subscription {\n  newMessage {\n    content\n    user\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">subscription {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  newMessage {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    content<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    user<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001\u30c1\u30e3\u30c3\u30c8\u30a2\u30d7\u30ea\u3084\u901a\u77e5\u6a5f\u80fd\u306a\u3069\u306e\u5b9f\u88c5\u6642\u306b\u6d3b\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__5\" class=\"wp-block-heading\">GraphQL Playground\u3092\u4f7f\u3063\u305f\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u624b\u9806<\/h2>\n\n\n\n<h3 id=\"outline__5_1\" class=\"wp-block-heading\">GraphQL Playground\u306e\u6982\u8981\u3068\u753b\u9762\u306e\u898b\u65b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GraphQL\u3092\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u5b9f\u884c\u3067\u304d\u308b GUI\u30c4\u30fc\u30eb\u306e1\u3064\u306b\u3001GraphQL Playground\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3b\u306a\u753b\u9762\u69cb\u6210\u306f\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30fb\u5de6\uff1aQuery Editor<br>\u30fb\u53f3\uff1a\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30fb\u25b6\uff1a\u5b9f\u884c\u30dc\u30bf\u30f3<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30fb\u53f3\u5074\u30bf\u30d6\uff1a<br>\u3000Schema<br>\u3000Documentation<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5de6\u30da\u30a4\u30f3\u306b\u30af\u30a8\u30ea\u3092\u8a18\u8ff0\u3057\u3001\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u304c\u53f3\u5074\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_2\" class=\"wp-block-heading\">\u5b9f\u969b\u306bQuery\u3092\u767a\u884c\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30af\u30a8\u30ea\u306e\u8a18\u8ff0\u65b9\u6cd5\u306f\u3001\u5148\u307b\u3069\u3082\u89e3\u8aac\u3057\u305f\u3088\u3046\u306b\u3001\u53d6\u5f97\u3057\u305f\u3044\u30c7\u30fc\u30bf\u69cb\u9020\u3092 <code>query {}<\/code> \u3067\u56f2\u3063\u3066\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>query {\n  countries {\n    code\n    name\n    emoji\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">query {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  countries {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    code<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    name<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    emoji<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u5b9f\u884c\u7d50\u679c<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>{\n  \"data\": {\n    \"countries\": &#91;\n      {\n        \"code\": \"JP\",\n        \"name\": \"Japan\",\n        \"emoji\": \"\ud83c\uddef\ud83c\uddf5\"\n      }\n    &#93;\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  &quot;data&quot;: {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    &quot;countries&quot;: &#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        &quot;code&quot;: &quot;JP&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        &quot;name&quot;: &quot;Japan&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        &quot;emoji&quot;: &quot;\ud83c\uddef\ud83c\uddf5&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    &#93;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306b\u3001\u30af\u30a8\u30ea\u3067\u6307\u5b9a\u3057\u305f\u30c7\u30fc\u30bf\u306e\u307f\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_3\" class=\"wp-block-heading\">\u5b9f\u969b\u306bMutation\u3092\u767a\u884c\u3057\u3066\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Mutation\u3082\u57fa\u672c\u7684\u306a\u8a18\u8ff0\u65b9\u6cd5\u306f\u30af\u30a8\u30ea\u3068\u307b\u3068\u3093\u3069\u5909\u308f\u308a\u307e\u305b\u3093\u3002<br>\u8ffd\u52a0\u3084\u524a\u9664\u306a\u3069\u306e\u30c7\u30fc\u30bf\u64cd\u4f5c\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u8a18\u8ff0\u3057\u3001\u305d\u308c\u3089\u3092 <code>mutation {}<\/code> \u3067\u56f2\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>mutation {\n  addUser(\n    name: \"Taro\"\n  ) {\n    id\n    name\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">mutation {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  addUser(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    name: &quot;Taro&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  ) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    id<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    name<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u64cd\u4f5c\u306b\u6210\u529f\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7d50\u679c\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u5b9f\u884c\u7d50\u679c<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>{\n  \"data\": {\n    \"addUser\": {\n      \"id\": 1,\n      \"name\": \"Taro\"\n    }\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  &quot;data&quot;: {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    &quot;addUser&quot;: {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      &quot;id&quot;: 1,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      &quot;name&quot;: &quot;Taro&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 id=\"outline__6\" class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GraphQL\u306f\u3001\u67d4\u8edf\u306a\u30c7\u30fc\u30bf\u64cd\u4f5c\u3092\u53ef\u80fd\u3068\u3059\u308b\u6b21\u4e16\u4ee3\u306eWeb API\u898f\u683c\u3067\u3059\u3002<br>\u901a\u4fe1\u91cf\u306e\u524a\u6e1b\u3084API\u547c\u3073\u51fa\u3057\u56de\u6570\u306e\u524a\u6e1b\u304c\u671f\u5f85\u3067\u304d\u3001\u7279\u306bSPA\u3084\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u3001React\u30fbNext.js\u3092\u5229\u7528\u3057\u305f\u958b\u767a\u3068\u306e\u76f8\u6027\u304c\u826f\u3044\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3067\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u3084\u30b5\u30fc\u30d0\u30fc\u8ca0\u8377\u306e\u7ba1\u7406\u306a\u3069\u3001\u5c0e\u5165\u6642\u306b\u8003\u616e\u3059\u3079\u304d\u70b9\u3082\u5b58\u5728\u3057\u307e\u3059\u3002<br>GraphQL\u306e\u7279\u5fb4\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u67d4\u8edf\u3067\u52b9\u7387\u7684\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8fd1\u5e74\u3001Web\u30b5\u30fc\u30d3\u30b9\u3084\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3067\u306f\u3001\u52b9\u7387\u7684\u306a\u30c7\u30fc\u30bf\u901a\u4fe1\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u3055\u307e\u3056\u307e\u306aAPI\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5f93\u6765\u306fREST API\u304c\u5e83\u304f\u63a1\u7528\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u8fd1\u5e74\u3067\u306f\u3088\u308a\u67d4\u8edf\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u308b\u300cGraphQL\u300d\u304c\u6ce8\u76ee\u3092\u96c6\u3081\u3066\u3044\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001GraphQL\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u304b\u3089REST API\u3068\u306e\u9055\u3044\u3001\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8\u3001\u57fa\u672c\u64cd\u4f5c\u304b\u3089\u5b9f\u8df5\u7684\u306a\u64cd\u4f5c\u65b9\u6cd5\u307e\u3067\u3001\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002  [&hellip;]","protected":false},"author":12,"featured_media":10595,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"fifu_image_url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/graphql.webp","fifu_image_alt":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-10593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/10593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/comments?post=10593"}],"version-history":[{"count":1,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/10593\/revisions"}],"predecessor-version":[{"id":10594,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/10593\/revisions\/10594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media\/10595"}],"wp:attachment":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media?parent=10593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/categories?post=10593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/tags?post=10593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}