{"id":1867,"date":"2019-05-13T19:39:24","date_gmt":"2019-05-13T10:39:24","guid":{"rendered":"https:\/\/lovelinux.mydns.jp\/?p=1867"},"modified":"2019-05-13T22:17:35","modified_gmt":"2019-05-13T13:17:35","slug":"apollo-server%e3%80%81graphql%e3%80%81nodejs%e3%80%81sequesize%e3%80%81%e3%83%95%e3%83%ad%e3%83%b3%e3%83%88%e3%81%abreactredux%e3%81%a7-%e3%83%9e%e3%82%b9%e3%82%bf%e3%83%bc%e3%83%a1%e3%83%b3%e3%83%86","status":"publish","type":"post","link":"https:\/\/lovelinux.mydns.jp\/?p=1867","title":{"rendered":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>GraphQL\u4f7f\u3063\u3066\u307f\u305f\u3044\u306a\u3041\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u3092\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u306fRuby\u3068nodejs\u3002\u691c\u7d22\u7d50\u679c\u306e\u91cf\u3067\u6bd4\u3079\u308b\u3068nodejs\u306e\u65b9\u304c\u591a\u3044\u3002\u3068\u304f\u306bApollo \u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u304c\u591a\u3044\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fApollo\u3067GraphQL\u3092\u5b9f\u88c5\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u3082Apollo Client\u3067\u3001\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u304c\u8abf\u3079\u3066\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Apollo Client\uff0bReact\u306f\u8272\u3005\u5236\u7d04\u304c\u3042\u3063\u3066\u4f7f\u3044\u3065\u3089\u3044\u3002\u3082\u3046\u5c11\u3057\u7a81\u3063\u8fbc\u3093\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u30b5\u30fc\u30d0\u30fc\u306b Query\u3068Mutaion\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3048\u308b\u3001graphql-request\u3068\u3044\u3046 npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002\u3053\u308c\u3092\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7d50\u69cb\u306a\u30ec\u30d9\u30eb\u3067\u601d\u3044\u901a\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067GraphQL\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u7d44\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3046\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9 Apollo Server + GraphQL + nodejs + sequelize<br \/>\n\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9 React + Redux + graphql-request<\/p>\n<p>REST\u3068\u4f55\u304b\u3068\u6bd4\u8f03\u3055\u308c\u3001REST\u306e\u6b21\u4e16\u4ee3\u306eGraphQL\u3060\u3068\u8a00\u308f\u308c\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u6b63\u4f53\u3092\u7a81\u304d\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u3082\u3001\u6700\u521d\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u308b\u3068\u304d\u306f\u3001\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3057\u305f\u304c\u3001\u308f\u304b\u308a\u3060\u3059\u3068\u3059\u308b\u3059\u308b\u3068\u7406\u89e3\u304c\u9032\u307f\u307e\u3059\u3057\u3001GraphQL\u306e\u826f\u3055\u3082\u4f53\u611f\u3067\u304d\u307e\u3059\u3002<br \/>\n\u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\u3001\u6211\u6162\u3057\u3066\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u7d50\u69cb\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u306e\u3067\u30014\u56de\u304b5\u56de\u306b\u5206\u3051\u3066\u306e\u9023\u8f09\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><font size=\"+1\"><\/p>\n<p><a href=\"https:\/\/lovelinux.mydns.jp\/?p=1867\">\u30fb\u7b2c\uff11\u56de Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067<\/a>(\u3053\u306e\u8a18\u4e8b)<\/p>\n<p><a href=\"https:\/\/lovelinux.mydns.jp\/?p=1896\">\u30fb\u7b2c\uff12\u56de Apollo Server\u914d\u4e0b\u3067\u3001GraphQL\u3092\u4f7f\u3063\u3066\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/a><\/p>\n<p><a href=\"https:\/\/lovelinux.mydns.jp\/?p=1905\">\u30fb\u7b2c\uff13\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092React\uff0bRedux\uff0bgraphql-request\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b<\/a><\/p>\n<p><a href=\"https:\/\/lovelinux.mydns.jp\/?p=1909\">\u30fb\u7b2c\uff14\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b<\/a><\/p>\n<p><a href=\"https:\/\/lovelinux.mydns.jp\/?p=1920\">\u30fb\u7b2c\uff15\u56de graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u767b\u9332\u30fb\u4fee\u6b63\u30fb\u524a\u9664\u3059\u308b<\/a><\/p>\n<p><\/font><\/p>\n<p>\u307e\u305a\u3001\u7b2c\u4e00\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u5fc5\u8981\u306anpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3001<br \/>\nnpm start\u3067 Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5b8c\u6210\u5f62\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-13-18-59-59.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-13-18-59-59-1024x798.png\" alt=\"Screenshot from 2019-05-13 18-59-59\" width=\"806\" height=\"628\" class=\"alignnone size-large wp-image-1884\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-13-18-59-59.png 1024w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-13-18-59-59-300x234.png 300w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-13-18-59-59-768x599.png 768w\" sizes=\"auto, (max-width: 806px) 100vw, 806px\" \/><\/a><\/p>\n<h3>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u6e96\u5099<\/h3>\n<p>\u307e\u305a\u306f\u958b\u767a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ mkdir ~\/workspace<br \/>\n$ mkdir ~\/workspace\/graphql-master<br \/>\n$ mkdir ~\/workspace\/graphql-master\/server<\/p>\n<p>$ cd ~\/workspace\/graphql-master\/server<\/p>\n<p>[\/bash]<\/p>\n<p>npm\u3092\u4f7f\u3063\u3066\u3001\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u7fa4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>[bash]<br \/>\n$ npm init -y<\/p>\n<p>$ npm install &#8211;save apollo-datasource apollo-server dotenv graphql nodemon pg sequelize<\/p>\n<p>$ npm install &#8211;save-dev apollo apollo-link apollo-link-http babel-cli babel-plugin-transform-object-rest-spread babel-preset-env jest nock node-fetch<\/p>\n<p>[\/bash]<\/p>\n<h3>Apollo Server\u3092\u8d77\u52d5\u3055\u305b\u308b\u305f\u3081\u306b<\/h3>\n<p>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u4e2d\u5fc3\u3068\u306a\u308b\u30d5\u30a1\u30a4\u30eb index.js\u306bApollo Server\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u306e\u3001\u3042\u308c\u3053\u308c\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u3001\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u3042\u308b\u306e\u306f\u3001\u57fa\u672c\u3001 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8\/src \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30d9\u30fc\u30b9\u306b\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ mkdir src<br \/>\n$ cd src<br \/>\n$ nano index.js<br \/>\n[\/bash]<\/p>\n<h4>index.js (src\/index.js)<\/h4>\n<p>\u3044\u308d\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306fApollo Server\u3067GraphQL\u3092\u52d5\u304b\u3059\u306e\u306b\u3001\u5fc5\u9808\u306a\u30d5\u30a1\u30a4\u30eb\u7fa4\u3067\u3059\u3002\u6700\u521d\u306f\u610f\u5473\u304c\u308f\u304b\u3089\u306a\u304f\u3066\u3082\u3001\u3042\u3041\u3001\u3053\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u3044\u308b\u3093\u3060\u306a\u3068\u3001\u611f\u899a\u7684\u306b\u899a\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>schema\u3000\u3068\u3044\u3046\u306e\u306f\u3001GraphQL API\u306e\u5b9a\u7fa9\u3092\u66f8\u304f\u5834\u6240\u3067\u3059\u3002<br \/>\nresolvers \u3068\u3044\u3046\u306e\u306f\u3001schema \u306b\u8a18\u8ff0\u3057\u305fAPI\u306e\u5b9f\u88c5\u3092\u66f8\u304f\u5834\u6240\u3067\u3059\u3002<br \/>\nstore \u3068\u3044\u3046\u306e\u306f mysql\u3084postgresql \u306e\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306e\u5b9a\u7fa9\u3092\u66f8\u304f\u5834\u6240\u3067\u3059\u3002<br \/>\ndataSources \u3068\u3044\u3046\u306e\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5404\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3059\u308b\u30e2\u30c7\u30eb\u3092\u307e\u3068\u3081\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b server.listen\u3067\u3001nodejs \u30b5\u30fc\u30d0\u30fc\uff08Apollo Server\uff09\u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\nimport {ApolloServer} from &#8220;apollo-server&#8221;;<\/p>\n<p>import typeDefs from &#8220;.\/schema&#8221;;<br \/>\nimport resolvers from &#8220;.\/resolvers&#8221;;<br \/>\nimport { createStore } from &#8220;.\/store&#8221;;<\/p>\n<p>const path = require(&#8216;path&#8217;);<br \/>\nrequire(&#8216;dotenv&#8217;).config({ path: path.join(__dirname, &#8216;..\/.env&#8217;) });<\/p>\n<p>const store = createStore();<\/p>\n<p>const dataSources = () => ({<br \/>\n  productAPI: new ProductAPI({store}),<br \/>\n});<\/p>\n<p>const server = new ApolloServer({<br \/>\n  typeDefs,<br \/>\n  resolvers,<br \/>\n  },<br \/>\n  context: async({req}) => {<br \/>\n\treturn {<br \/>\n\tSECRET: process.env.SECRET,<br \/>\n\t}<br \/>\n  },<br \/>\n  dataSources,<br \/>\n});<\/p>\n<p>server.listen().then(({ url }) => {<br \/>\n  console.log(`GraphQL \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9 Server ready at ${url}`);<br \/>\n});<\/p>\n<p>[\/bash]<\/p>\n<h4>.env(.env)<\/h4>\n<p>\u74b0\u5883\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u8a2d\u5b9a\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<br \/>\n[bash]<br \/>\n$ nano ..\/.env<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\nDATABASE=graphql_dev<br \/>\nDATABASE_USER=postgres<br \/>\nDATABASE_PASSWORD=mypass<\/p>\n<p>SECRET=xz5y78fwfwefwekwfhyu.1856547.ffgxmz<\/p>\n<p>[\/bash]<\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u304a\u6c7a\u307e\u308a\u306e\u9b54\u6cd5\u306e\u8a00\u8449\u3060\u7a0b\u5ea6\u3067\u899a\u3048\u3066\u304a\u3044\u3066\u3001\u3068\u308a\u3042\u3048\u305a\u3001\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[bash]<br \/>\n$ nano ..\/.babelrc<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\n{<br \/>\n  &#8220;presets&#8221;: [<br \/>\n      [<br \/>\n          &#8220;env&#8221;, {<br \/>\n              &#8220;targets&#8221;: {<br \/>\n                  &#8220;node&#8221;: &#8220;current&#8221;<br \/>\n              }<br \/>\n          }<br \/>\n      ]<br \/>\n  ],<br \/>\n  &#8220;plugins&#8221;: [&#8220;transform-object-rest-spread&#8221;]<br \/>\n}<\/p>\n<p>[\/bash]<\/p>\n<h4>schema.js (src\/schema.js)<\/h4>\n<p>\u3067\u306f GraphQL API\u306e\u5b9a\u7fa9\u3092\u66f8\u3044\u3066\u3044\u304f schema.js\u3067\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ nano schema.js<br \/>\n[\/bash]<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001Query \u3068 Mutation\u306f \u9069\u5f53\u306a\u3082\u306e\u3067\u3054\u307e\u304b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\uff08\u3042\u3068\u3067\u4fee\u6b63\u3057\u307e\u3059\uff09<\/p>\n<p>[bash]<br \/>\nimport { gql } from &#8220;apollo-server&#8221;;<\/p>\n<p>export default gql`<br \/>\n  type Query {<br \/>\n    getProduct(id: Int!): Int!<br \/>\n  }<\/p>\n<p>  type Mutation{<br \/>\n    registerProduct(id: Int!): Int!<br \/>\n  }<br \/>\n`;<\/p>\n<p>[\/bash]<\/p>\n<h4>resolvers.js (src\/resolvers.js)<\/h4>\n<p>\u3067\u306f GraphQL API\u306e\u5b9f\u88c5\u3092\u66f8\u3044\u3066\u3044\u304f resolvers.js\u3067\u3059\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305a\u3001\u7a7a\u3063\u307d\u306e Query \u3068 Mutation\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>[bash]<br \/>\n$ nano resolver.js<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\nimport { ForbiddenError } from &#8216;apollo-server&#8217;;<\/p>\n<p>export default {<br \/>\n  Query: {<br \/>\n  },<\/p>\n<p>  Mutation: {<br \/>\n  }<\/p>\n<p>}<\/p>\n<p>[\/bash]<\/p>\n<h4>store.js (src\/store.js)<\/h4>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u3068\u3001\u5b9f\u969b\u306b\u4f7f\u3046\u30c6\u30fc\u30d6\u30eb\u306e\u30b9\u30ad\u30fc\u30de\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ nano store.js<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\nimport SQL from &#8220;sequelize&#8221;;<\/p>\n<p>export const createStore = () => {<\/p>\n<p>  const db = new SQL(process.env.DATABASE, process.env.DATABASE_USER, process.env.DATABASE_PASSWORD, {<br \/>\n    dialect: &#8220;postgresql&#8221;,<br \/>\n  });<\/p>\n<p>  const products = db.define(&#8216;product&#8217;, {<br \/>\n    id: {<br \/>\n      type: SQL.INTEGER,<br \/>\n      primaryKey: true,<br \/>\n      autoIncrement: true,<br \/>\n    },<br \/>\n    product_name: {<br \/>\n      type: SQL.STRING,<br \/>\n      allowNull: false,<br \/>\n    },<br \/>\n    price: {<br \/>\n      type: SQL.INTEGER,<br \/>\n      allowNull: false,<br \/>\n    },<br \/>\n    createdAt: {<br \/>\n      type: SQL.DATE,<br \/>\n    },<br \/>\n    updatedAt: {<br \/>\n      type: SQL.DATE,<br \/>\n    },<\/p>\n<p>  });<\/p>\n<p>  return { products };<br \/>\n}<\/p>\n<p>[\/bash]<\/p>\n<h3>Apollo Server\u8d77\u52d5<\/h3>\n<p>package.json\u3092\u4f7f\u3063\u3066 npm start \u3067\u3001Apollo Server(nodejs)\u3092\u52d5\u304b\u305b\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\nbabel-node \u3068\u3044\u3046\u306e\u306f ES2015\u5f62\u5f0f\u3067\u66f8\u3044\u305f\u65b0\u3057\u3044\u5f62\u5f0f\u306e\u30bd\u30fc\u30b9\u3092\u3001\u53e4\u3044\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ nano ..\/package.json<br \/>\n[\/absh]<\/p>\n<p>[bash]<br \/>\n  &#8220;scripts&#8221;: {<br \/>\n    &#8220;start&#8221;: &#8220;nodemon &#8211;exec babel-node src\/index.js&#8221;,<br \/>\n    &#8220;build-prod&#8221;: &#8220;babel src -d dist&#8221;,<br \/>\n    &#8220;build&#8221;: &#8220;babel src -d build\/ &#8211;source-maps&#8221;,<br \/>\n    &#8220;serve&#8221;: &#8220;node dist\/index.js&#8221;,<br \/>\n    &#8220;test&#8221;: &#8220;echo \\&#8221;Error: no test specified\\&#8221; &#038;&#038; exit 1&#8243;<br \/>\n  },<\/p>\n<p>[\/bash]<\/p>\n<p>\u3067\u306f\u3001Apollo Server\u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>[bash]<br \/>\n$ npm start<br \/>\n[\/bash]<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u3068\u308a\u3042\u3048\u305a\u3001Apollo Server\u304c\u52d5\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-12-20-58-10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-12-20-58-10.png\" alt=\"Screenshot from 2019-05-12 20-58-10\" width=\"734\" height=\"522\" class=\"alignnone size-full wp-image-1870\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-12-20-58-10.png 734w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/Screenshot-from-2019-05-12-20-58-10-300x213.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b GraphQL\u4f7f\u3063\u3066\u307f\u305f\u3044\u306a\u3041\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u3092\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u306fRuby\u3068nodejs\u3002\u691c\u7d22\u7d50\u679c\u306e\u91cf\u3067\u6bd4\u3079\u308b\u3068nodejs\u306e\u65b9\u304c\u591a\u3044\u3002\u3068\u304f\u306bApollo \u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u304c\u591a\u3044\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fApollo\u3067GraphQL\u3092\u5b9f\u88c5\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u3082Apollo Client\u3067\u3001\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u304c\u8abf\u3079\u3066\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Apollo Client\uff0bReact\u306f\u8272\u3005\u5236\u7d04\u304c\u3042\u3063\u3066\u4f7f\u3044\u3065\u3089\u3044\u3002\u3082\u3046\u5c11\u3057\u7a81\u3063\u8fbc\u3093\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u30b5\u30fc\u30d0\u30fc\u306b Query\u3068Mutaion\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3048\u308b\u3001graphql-request\u3068\u3044\u3046 npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002\u3053\u308c\u3092\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7d50\u69cb\u306a\u30ec\u30d9\u30eb\u3067\u601d\u3044\u901a\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067GraphQL\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u7d44\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3046\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9 Apollo Server + GraphQL + nodejs + sequelize \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9 React + Redux + graphql-request REST\u3068\u4f55\u304b\u3068\u6bd4\u8f03\u3055\u308c\u3001REST\u306e\u6b21\u4e16\u4ee3\u306eGraphQL\u3060\u3068\u8a00\u308f\u308c\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u6b63\u4f53\u3092\u7a81\u304d\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u3082\u3001\u6700\u521d\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u308b\u3068\u304d\u306f\u3001\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3057\u305f\u304c\u3001\u308f\u304b\u308a\u3060\u3059\u3068\u3059\u308b\u3059\u308b\u3068\u7406\u89e3\u304c\u9032\u307f\u307e\u3059\u3057\u3001GraphQL\u306e\u826f\u3055\u3082\u4f53\u611f\u3067\u304d\u307e\u3059\u3002 \u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\u3001\u6211\u6162\u3057\u3066\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002 \u7d50\u69cb\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u306e\u3067\u30014\u56de\u304b5\u56de\u306b\u5206\u3051\u3066\u306e\u9023\u8f09\u306b\u306a\u308a\u307e\u3059\u3002 \u30fb\u7b2c\uff11\u56de Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067(\u3053\u306e\u8a18\u4e8b) \u30fb\u7b2c\uff12\u56de Apollo Server\u914d\u4e0b\u3067\u3001GraphQL\u3092\u4f7f\u3063\u3066\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b \u30fb\u7b2c\uff13\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092React\uff0bRedux\uff0bgraphql-request\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b \u30fb\u7b2c\uff14\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b \u30fb\u7b2c\uff15\u56de graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u767b\u9332\u30fb\u4fee\u6b63\u30fb\u524a\u9664\u3059\u308b \u307e\u305a\u3001\u7b2c\u4e00\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u5fc5\u8981\u306anpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3001 npm start\u3067 Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5b8c\u6210\u5f62\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u6e96\u5099 \u307e\u305a\u306f\u958b\u767a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 [bash] $ mkdir ~\/workspace $ mkdir ~\/workspace\/graphql-master $ mkdir ~\/workspace\/graphql-master\/server $ cd ~\/workspace\/graphql-master\/server [\/bash] npm\u3092\u4f7f\u3063\u3066\u3001\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u7fa4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [bash] $ npm init -y $ npm install &#8211;save apollo-datasource apollo-server dotenv graphql nodemon pg sequelize $ npm install &#8211;save-dev apollo apollo-link apollo-link-http babel-cli babel-plugin-transform-object-rest-spread babel-preset-env jest nock node-fetch [\/bash] Apollo Server\u3092\u8d77\u52d5\u3055\u305b\u308b\u305f\u3081\u306b \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u4e2d\u5fc3\u3068\u306a\u308b\u30d5\u30a1\u30a4\u30eb index.js\u306bApollo Server\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u306e\u3001\u3042\u308c\u3053\u308c\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u4ee5\u4e0b\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u3001\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u3042\u308b\u306e\u306f\u3001\u57fa\u672c\u3001 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8\/src \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30d9\u30fc\u30b9\u306b\u8a18\u8f09\u3057\u307e\u3059\u3002 [bash] $ mkdir src $ cd src $ nano index.js [\/bash] index.js (src\/index.js) \u3044\u308d\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306fApollo Server\u3067GraphQL\u3092\u52d5\u304b\u3059\u306e\u306b\u3001\u5fc5\u9808\u306a\u30d5\u30a1\u30a4\u30eb\u7fa4\u3067\u3059\u3002\u6700\u521d\u306f\u610f\u5473\u304c\u308f\u304b\u3089\u306a\u304f\u3066\u3082\u3001\u3042\u3041\u3001\u3053\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u3044\u308b\u3093\u3060\u306a\u3068\u3001\u611f\u899a\u7684\u306b\u899a\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 schema\u3000\u3068\u3044\u3046\u306e\u306f\u3001GraphQL API\u306e\u5b9a\u7fa9\u3092\u66f8\u304f\u5834\u6240\u3067\u3059\u3002 resolvers \u3068\u3044\u3046\u306e\u306f\u3001schema \u306b\u8a18\u8ff0\u3057\u305fAPI\u306e\u5b9f\u88c5\u3092\u66f8\u304f\u5834\u6240\u3067\u3059\u3002 store \u3068\u3044\u3046\u306e\u306f mysql\u3084postgresql \u306e\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306e\u5b9a\u7fa9\u3092\u66f8\u304f\u5834\u6240\u3067\u3059\u3002 dataSources \u3068\u3044\u3046\u306e\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5404\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3059\u308b\u30e2\u30c7\u30eb\u3092\u307e\u3068\u3081\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002 \u6700\u5f8c\u306b server.listen\u3067\u3001nodejs \u30b5\u30fc\u30d0\u30fc\uff08Apollo Server\uff09\u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002 [bash] import {ApolloServer} from &#8220;apollo-server&#8221;; import typeDefs from &#8220;.\/schema&#8221;; import resolvers from &#8220;.\/resolvers&#8221;; import { createStore } from &#8220;.\/store&#8221;; const path = require(&#8216;path&#8217;); require(&#8216;dotenv&#8217;).config({ path: path.join(__dirname, &#8216;..\/.env&#8217;) }); const store = createStore(); const dataSources = () => ({ productAPI: new ProductAPI({store}), }); const server = new ApolloServer({ typeDefs, resolvers, }, context: async({req}) => { return { SECRET: process.env.SECRET, } }, dataSources, }); server.listen().then(({ url }) => { console.log(`GraphQL \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9 Server ready at ${url}`); }); [\/bash] .env(.env) \u74b0\u5883\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u63a5\u7d9a\u8a2d\u5b9a\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002 [bash] $ nano ..\/.env [\/bash] [bash] DATABASE=graphql_dev DATABASE_USER=postgres DATABASE_PASSWORD=mypass SECRET=xz5y78fwfwefwekwfhyu.1856547.ffgxmz [\/bash] \u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u304a\u6c7a\u307e\u308a\u306e\u9b54\u6cd5\u306e\u8a00\u8449\u3060\u7a0b\u5ea6\u3067\u899a\u3048\u3066\u304a\u3044\u3066\u3001\u3068\u308a\u3042\u3048\u305a\u3001\u4f5c\u3063\u3066\u304f\u3060\u3055\u3044\u3002 [bash] $ nano ..\/.babelrc [\/bash] [bash] { &#8220;presets&#8221;: [ [ &#8220;env&#8221;, { &#8220;targets&#8221;: { &#8220;node&#8221;: &#8220;current&#8221; } } ] ], &#8220;plugins&#8221;: [&#8220;transform-object-rest-spread&#8221;] } [\/bash] schema.js (src\/schema.js) \u3067\u306f GraphQL API\u306e\u5b9a\u7fa9\u3092\u66f8\u3044\u3066\u3044\u304f schema.js\u3067\u3059\u3002 [bash] $ nano schema.js [\/bash] \u3068\u308a\u3042\u3048\u305a\u3001Query \u3068 Mutation\u306f \u9069\u5f53\u306a\u3082\u306e\u3067\u3054\u307e\u304b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\uff08\u3042\u3068\u3067\u4fee\u6b63\u3057\u307e\u3059\uff09 [bash] import { gql } from &#8220;apollo-server&#8221;; export default gql` type Query { getProduct(id: Int!): Int! } type Mutation{ registerProduct(id: Int!): Int! } `; [\/bash] resolvers.js (src\/resolvers.js) \u3067\u306f GraphQL API\u306e\u5b9f\u88c5\u3092\u66f8\u3044\u3066\u3044\u304f resolvers.js\u3067\u3059\u3002 \u3068\u308a\u3042\u3048\u305a\u3001\u7a7a\u3063\u307d\u306e Query \u3068 Mutation\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002 [bash] $ nano resolver.js [\/bash] [bash] import&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1914,"comment_status":"open","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,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[77],"tags":[102,101,86],"class_list":{"0":"post-1867","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-react","8":"tag-apollo","9":"tag-graphql","10":"tag-react"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u306f\u3058\u3081\u306b GraphQL\u4f7f\u3063\u3066\u307f\u305f\u3044\u306a\u3041\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u3092\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u306fRuby\u3068nodejs\u3002\u691c\u7d22\u7d50\u679c\u306e\u91cf\u3067\u6bd4\u3079\u308b\u3068nodejs\u306e\u65b9\u304c\u591a\u3044\u3002\u3068\u304f\u306bApollo \u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u304c\u591a\u3044\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fApollo\u3067GraphQL\u3092\u5b9f\u88c5\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u3082Apollo Client\u3067\u3001\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u304c\u8abf\u3079\u3066\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Apollo Client\uff0bReact\u306f\u8272\u3005\u5236\u7d04\u304c\u3042\u3063\u3066\u4f7f\u3044\u3065\u3089\u3044\u3002\u3082\u3046\u5c11\u3057\u7a81\u3063\u8fbc\u3093\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u30b5\u30fc\u30d0\u30fc\u306b Query\u3068Mutaion\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3048\u308b\u3001graphql-request\u3068\u3044\u3046 npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002\u3053\u308c\u3092\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7d50\u69cb\u306a\u30ec\u30d9\u30eb\u3067\u601d\u3044\u901a\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067GraphQL\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u7d44\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3046\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9 Apollo Server + GraphQL + nodejs + sequelize \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9 React + Redux + graphql-request REST\u3068\u4f55\u304b\u3068\u6bd4\u8f03\u3055\u308c\u3001REST\u306e\u6b21\u4e16\u4ee3\u306eGraphQL\u3060\u3068\u8a00\u308f\u308c\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u6b63\u4f53\u3092\u7a81\u304d\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u3082\u3001\u6700\u521d\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u308b\u3068\u304d\u306f\u3001\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3057\u305f\u304c\u3001\u308f\u304b\u308a\u3060\u3059\u3068\u3059\u308b\u3059\u308b\u3068\u7406\u89e3\u304c\u9032\u307f\u307e\u3059\u3057\u3001GraphQL\u306e\u826f\u3055\u3082\u4f53\u611f\u3067\u304d\u307e\u3059\u3002 \u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\u3001\u6211\u6162\u3057\u3066\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002 \u7d50\u69cb\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u306e\u3067\u30014\u56de\u304b5\u56de\u306b\u5206\u3051\u3066\u306e\u9023\u8f09\u306b\u306a\u308a\u307e\u3059\u3002 \u30fb\u7b2c\uff11\u56de Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067(\u3053\u306e\u8a18\u4e8b) \u30fb\u7b2c\uff12\u56de Apollo Server\u914d\u4e0b\u3067\u3001GraphQL\u3092\u4f7f\u3063\u3066\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b \u30fb\u7b2c\uff13\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092React\uff0bRedux\uff0bgraphql-request\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b \u30fb\u7b2c\uff14\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b \u30fb\u7b2c\uff15\u56de graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u767b\u9332\u30fb\u4fee\u6b63\u30fb\u524a\u9664\u3059\u308b \u307e\u305a\u3001\u7b2c\u4e00\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u5fc5\u8981\u306anpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3001 npm start\u3067 Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5b8c\u6210\u5f62\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u6e96\u5099 \u307e\u305a\u306f\u958b\u767a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 [bash] $ mkdir ~\/workspace $ mkdir ~\/workspace\/graphql-master $\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"hiroshi\"\/>\n\t<meta name=\"google-site-verification\" content=\"fo5n0bjUdcitu1FsBTJqqwL580wBLhhCM51IEogDt9Y\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/lovelinux.mydns.jp\/?p=1867\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Love Linux | enjoy using linux for programming flatform\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1\" \/>\n\t\t<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b GraphQL\u4f7f\u3063\u3066\u307f\u305f\u3044\u306a\u3041\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u3092\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u306fRuby\u3068nodejs\u3002\u691c\u7d22\u7d50\u679c\u306e\u91cf\u3067\u6bd4\u3079\u308b\u3068nodejs\u306e\u65b9\u304c\u591a\u3044\u3002\u3068\u304f\u306bApollo \u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u304c\u591a\u3044\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fApollo\u3067GraphQL\u3092\u5b9f\u88c5\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u3082Apollo Client\u3067\u3001\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u304c\u8abf\u3079\u3066\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Apollo Client\uff0bReact\u306f\u8272\u3005\u5236\u7d04\u304c\u3042\u3063\u3066\u4f7f\u3044\u3065\u3089\u3044\u3002\u3082\u3046\u5c11\u3057\u7a81\u3063\u8fbc\u3093\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u30b5\u30fc\u30d0\u30fc\u306b Query\u3068Mutaion\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3048\u308b\u3001graphql-request\u3068\u3044\u3046 npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002\u3053\u308c\u3092\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7d50\u69cb\u306a\u30ec\u30d9\u30eb\u3067\u601d\u3044\u901a\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067GraphQL\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u7d44\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3046\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9 Apollo Server + GraphQL + nodejs + sequelize \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9 React + Redux + graphql-request REST\u3068\u4f55\u304b\u3068\u6bd4\u8f03\u3055\u308c\u3001REST\u306e\u6b21\u4e16\u4ee3\u306eGraphQL\u3060\u3068\u8a00\u308f\u308c\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u6b63\u4f53\u3092\u7a81\u304d\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u3082\u3001\u6700\u521d\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u308b\u3068\u304d\u306f\u3001\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3057\u305f\u304c\u3001\u308f\u304b\u308a\u3060\u3059\u3068\u3059\u308b\u3059\u308b\u3068\u7406\u89e3\u304c\u9032\u307f\u307e\u3059\u3057\u3001GraphQL\u306e\u826f\u3055\u3082\u4f53\u611f\u3067\u304d\u307e\u3059\u3002 \u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\u3001\u6211\u6162\u3057\u3066\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002 \u7d50\u69cb\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u306e\u3067\u30014\u56de\u304b5\u56de\u306b\u5206\u3051\u3066\u306e\u9023\u8f09\u306b\u306a\u308a\u307e\u3059\u3002 \u30fb\u7b2c\uff11\u56de Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067(\u3053\u306e\u8a18\u4e8b) \u30fb\u7b2c\uff12\u56de Apollo Server\u914d\u4e0b\u3067\u3001GraphQL\u3092\u4f7f\u3063\u3066\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b \u30fb\u7b2c\uff13\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092React\uff0bRedux\uff0bgraphql-request\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b \u30fb\u7b2c\uff14\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b \u30fb\u7b2c\uff15\u56de graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u767b\u9332\u30fb\u4fee\u6b63\u30fb\u524a\u9664\u3059\u308b \u307e\u305a\u3001\u7b2c\u4e00\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u5fc5\u8981\u306anpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3001 npm start\u3067 Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5b8c\u6210\u5f62\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u6e96\u5099 \u307e\u305a\u306f\u958b\u767a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 [bash] $ mkdir ~\/workspace $ mkdir ~\/workspace\/graphql-master $\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/lovelinux.mydns.jp\/?p=1867\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-05-13T10:39:24+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-05-13T13:17:35+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u306f\u3058\u3081\u306b GraphQL\u4f7f\u3063\u3066\u307f\u305f\u3044\u306a\u3041\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u3092\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u306fRuby\u3068nodejs\u3002\u691c\u7d22\u7d50\u679c\u306e\u91cf\u3067\u6bd4\u3079\u308b\u3068nodejs\u306e\u65b9\u304c\u591a\u3044\u3002\u3068\u304f\u306bApollo \u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u304c\u591a\u3044\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fApollo\u3067GraphQL\u3092\u5b9f\u88c5\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u3082Apollo Client\u3067\u3001\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u304c\u8abf\u3079\u3066\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Apollo Client\uff0bReact\u306f\u8272\u3005\u5236\u7d04\u304c\u3042\u3063\u3066\u4f7f\u3044\u3065\u3089\u3044\u3002\u3082\u3046\u5c11\u3057\u7a81\u3063\u8fbc\u3093\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u30b5\u30fc\u30d0\u30fc\u306b Query\u3068Mutaion\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3048\u308b\u3001graphql-request\u3068\u3044\u3046 npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002\u3053\u308c\u3092\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7d50\u69cb\u306a\u30ec\u30d9\u30eb\u3067\u601d\u3044\u901a\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067GraphQL\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u7d44\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3046\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9 Apollo Server + GraphQL + nodejs + sequelize \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9 React + Redux + graphql-request REST\u3068\u4f55\u304b\u3068\u6bd4\u8f03\u3055\u308c\u3001REST\u306e\u6b21\u4e16\u4ee3\u306eGraphQL\u3060\u3068\u8a00\u308f\u308c\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u6b63\u4f53\u3092\u7a81\u304d\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u3082\u3001\u6700\u521d\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u308b\u3068\u304d\u306f\u3001\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3057\u305f\u304c\u3001\u308f\u304b\u308a\u3060\u3059\u3068\u3059\u308b\u3059\u308b\u3068\u7406\u89e3\u304c\u9032\u307f\u307e\u3059\u3057\u3001GraphQL\u306e\u826f\u3055\u3082\u4f53\u611f\u3067\u304d\u307e\u3059\u3002 \u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\u3001\u6211\u6162\u3057\u3066\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002 \u7d50\u69cb\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u306e\u3067\u30014\u56de\u304b5\u56de\u306b\u5206\u3051\u3066\u306e\u9023\u8f09\u306b\u306a\u308a\u307e\u3059\u3002 \u30fb\u7b2c\uff11\u56de Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067(\u3053\u306e\u8a18\u4e8b) \u30fb\u7b2c\uff12\u56de Apollo Server\u914d\u4e0b\u3067\u3001GraphQL\u3092\u4f7f\u3063\u3066\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b \u30fb\u7b2c\uff13\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092React\uff0bRedux\uff0bgraphql-request\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b \u30fb\u7b2c\uff14\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b \u30fb\u7b2c\uff15\u56de graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u767b\u9332\u30fb\u4fee\u6b63\u30fb\u524a\u9664\u3059\u308b \u307e\u305a\u3001\u7b2c\u4e00\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u5fc5\u8981\u306anpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3001 npm start\u3067 Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5b8c\u6210\u5f62\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u6e96\u5099 \u307e\u305a\u306f\u958b\u767a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 [bash] $ mkdir ~\/workspace $ mkdir ~\/workspace\/graphql-master $\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#article\",\"name\":\"Apollo Server\\u3001GraphQL\\u3001nodejs\\u3001sequesize\\u3001\\u30d5\\u30ed\\u30f3\\u30c8\\u306bReact+Redux\\u3067 \\u30de\\u30b9\\u30bf\\u30fc\\u30e1\\u30f3\\u30c6\\u30ca\\u30f3\\u30b9\\u3092\\u4f5c\\u308d\\u3046! \\u301cVol.1\",\"headline\":\"Apollo Server\\u3001GraphQL\\u3001nodejs\\u3001sequesize\\u3001\\u30d5\\u30ed\\u30f3\\u30c8\\u306bReact+Redux\\u3067 \\u30de\\u30b9\\u30bf\\u30fc\\u30e1\\u30f3\\u30c6\\u30ca\\u30f3\\u30b9\\u3092\\u4f5c\\u308d\\u3046! \\u301cVol.1\",\"author\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/catch.png\",\"width\":1178,\"height\":449},\"datePublished\":\"2019-05-13T19:39:24+09:00\",\"dateModified\":\"2019-05-13T22:17:35+09:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#webpage\"},\"articleSection\":\"React, Apollo, GraphQL, react\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/lovelinux.mydns.jp\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2#listItem\",\"position\":2,\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\",\"item\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=77#listItem\",\"name\":\"React\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=77#listItem\",\"position\":3,\"name\":\"React\",\"item\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=77\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#listItem\",\"name\":\"Apollo Server\\u3001GraphQL\\u3001nodejs\\u3001sequesize\\u3001\\u30d5\\u30ed\\u30f3\\u30c8\\u306bReact+Redux\\u3067 \\u30de\\u30b9\\u30bf\\u30fc\\u30e1\\u30f3\\u30c6\\u30ca\\u30f3\\u30b9\\u3092\\u4f5c\\u308d\\u3046! \\u301cVol.1\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#listItem\",\"position\":4,\"name\":\"Apollo Server\\u3001GraphQL\\u3001nodejs\\u3001sequesize\\u3001\\u30d5\\u30ed\\u30f3\\u30c8\\u306bReact+Redux\\u3067 \\u30de\\u30b9\\u30bf\\u30fc\\u30e1\\u30f3\\u30c6\\u30ca\\u30f3\\u30b9\\u3092\\u4f5c\\u308d\\u3046! \\u301cVol.1\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=77#listItem\",\"name\":\"React\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1\",\"name\":\"hiroshi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e7c5ca03ae8cd5b5d36ac0f62f59c26d34fd667afa57dafb4978790c04c5146f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"hiroshi\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#webpage\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867\",\"name\":\"Apollo Server\\u3001GraphQL\\u3001nodejs\\u3001sequesize\\u3001\\u30d5\\u30ed\\u30f3\\u30c8\\u306bReact+Redux\\u3067 \\u30de\\u30b9\\u30bf\\u30fc\\u30e1\\u30f3\\u30c6\\u30ca\\u30f3\\u30b9\\u3092\\u4f5c\\u308d\\u3046! \\u301cVol.1\",\"description\":\"\\u306f\\u3058\\u3081\\u306b GraphQL\\u4f7f\\u3063\\u3066\\u307f\\u305f\\u3044\\u306a\\u3041\\u3002\\u8abf\\u3079\\u305f\\u3068\\u3053\\u308d\\u3001GraphQL\\u3092\\u30b5\\u30fc\\u30d0\\u30fc\\u30b5\\u30a4\\u30c9\\u3067\\u5b9f\\u88c5\\u3057\\u3066\\u3044\\u308b\\u306e\\u306fRuby\\u3068nodejs\\u3002\\u691c\\u7d22\\u7d50\\u679c\\u306e\\u91cf\\u3067\\u6bd4\\u3079\\u308b\\u3068nodejs\\u306e\\u65b9\\u304c\\u591a\\u3044\\u3002\\u3068\\u304f\\u306bApollo \\u3092\\u4f7f\\u3063\\u305f\\u8a18\\u4e8b\\u304c\\u591a\\u3044\\u3002 \\u3068\\u3044\\u3046\\u3053\\u3068\\u3067\\u3001\\u30b5\\u30fc\\u30d0\\u30fc\\u30b5\\u30a4\\u30c9\\u306fApollo\\u3067GraphQL\\u3092\\u5b9f\\u88c5\\u3057\\u3001\\u30d5\\u30ed\\u30f3\\u30c8\\u3082Apollo Client\\u3067\\u3001\\u3068\\u884c\\u304d\\u305f\\u3044\\u3068\\u3053\\u308d\\u306a\\u306e\\u3067\\u3059\\u304c\\u3001\\u79c1\\u304c\\u8abf\\u3079\\u3066\\u5b9f\\u969b\\u4f7f\\u3063\\u3066\\u307f\\u305f\\u3068\\u3053\\u308d\\u3001Apollo Client\\uff0bReact\\u306f\\u8272\\u3005\\u5236\\u7d04\\u304c\\u3042\\u3063\\u3066\\u4f7f\\u3044\\u3065\\u3089\\u3044\\u3002\\u3082\\u3046\\u5c11\\u3057\\u7a81\\u3063\\u8fbc\\u3093\\u3067\\u8abf\\u3079\\u305f\\u3068\\u3053\\u308d\\u3001GraphQL\\u30b5\\u30fc\\u30d0\\u30fc\\u306b Query\\u3068Mutaion\\u306e\\u30ea\\u30af\\u30a8\\u30b9\\u30c8\\u3092\\u884c\\u3048\\u308b\\u3001graphql-request\\u3068\\u3044\\u3046 npm\\u30d1\\u30c3\\u30b1\\u30fc\\u30b8\\u304c\\u3042\\u308b\\u306e\\u3092\\u898b\\u3064\\u3051\\u305f\\u3002\\u3053\\u308c\\u3092\\u5b9f\\u969b\\u4f7f\\u3063\\u3066\\u307f\\u308b\\u3068\\u3001\\u7d50\\u69cb\\u306a\\u30ec\\u30d9\\u30eb\\u3067\\u601d\\u3044\\u901a\\u308a\\u306b\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u3067\\u304d\\u308b\\u3088\\u3046\\u306b\\u306a\\u3063\\u305f\\u306e\\u3067\\u3001\\u4ee5\\u4e0b\\u306e\\u7d44\\u307f\\u5408\\u308f\\u305b\\u3067GraphQL\\u306e\\u7df4\\u7fd2\\u3068\\u3057\\u3066\\u3001\\u5546\\u54c1\\u30de\\u30b9\\u30bf\\u30fc\\u30e1\\u30f3\\u30c6\\u30ca\\u30f3\\u30b9\\u3092\\u7d44\\u3093\\u3067\\u307f\\u305f\\u3044\\u3068\\u601d\\u3046\\u3002 \\u30b5\\u30fc\\u30d0\\u30fc\\u30b5\\u30a4\\u30c9 Apollo Server + GraphQL + nodejs + sequelize \\u30d5\\u30ed\\u30f3\\u30c8\\u30a8\\u30f3\\u30c9 React + Redux + graphql-request REST\\u3068\\u4f55\\u304b\\u3068\\u6bd4\\u8f03\\u3055\\u308c\\u3001REST\\u306e\\u6b21\\u4e16\\u4ee3\\u306eGraphQL\\u3060\\u3068\\u8a00\\u308f\\u308c\\u307e\\u3059\\u304c\\u3001\\u5b9f\\u969b\\u306b\\u305d\\u306e\\u6b63\\u4f53\\u3092\\u7a81\\u304d\\u6b62\\u3081\\u3089\\u308c\\u308b\\u3053\\u3068\\u3092\\u76ee\\u6307\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\\u79c1\\u3082\\u3001\\u6700\\u521d\\u30b3\\u30fc\\u30c7\\u30a3\\u30f3\\u30b0\\u3057\\u3066\\u308b\\u3068\\u304d\\u306f\\u3001\\u3061\\u3093\\u3077\\u3093\\u304b\\u3093\\u3077\\u3093\\u3067\\u3057\\u305f\\u304c\\u3001\\u308f\\u304b\\u308a\\u3060\\u3059\\u3068\\u3059\\u308b\\u3059\\u308b\\u3068\\u7406\\u89e3\\u304c\\u9032\\u307f\\u307e\\u3059\\u3057\\u3001GraphQL\\u306e\\u826f\\u3055\\u3082\\u4f53\\u611f\\u3067\\u304d\\u307e\\u3059\\u3002 \\u304b\\u306a\\u308a\\u9577\\u3044\\u3067\\u3059\\u304c\\u3001\\u6211\\u6162\\u3057\\u3066\\u304a\\u4ed8\\u304d\\u5408\\u3044\\u304f\\u3060\\u3055\\u3044\\u3002 \\u7d50\\u69cb\\u306a\\u30dc\\u30ea\\u30e5\\u30fc\\u30e0\\u306a\\u306e\\u3067\\u30014\\u56de\\u304b5\\u56de\\u306b\\u5206\\u3051\\u3066\\u306e\\u9023\\u8f09\\u306b\\u306a\\u308a\\u307e\\u3059\\u3002 \\u30fb\\u7b2c\\uff11\\u56de Apollo Server\\u304c\\u52d5\\u304f\\u3068\\u3053\\u308d\\u307e\\u3067(\\u3053\\u306e\\u8a18\\u4e8b) \\u30fb\\u7b2c\\uff12\\u56de Apollo Server\\u914d\\u4e0b\\u3067\\u3001GraphQL\\u3092\\u4f7f\\u3063\\u3066\\u5546\\u54c1\\u30de\\u30b9\\u30bf\\u30fc\\u306b\\u30a2\\u30af\\u30bb\\u30b9\\u3059\\u308b \\u30fb\\u7b2c\\uff13\\u56de \\u30d5\\u30ed\\u30f3\\u30c8\\u30a8\\u30f3\\u30c9\\u3092React\\uff0bRedux\\uff0bgraphql-request\\u3092\\u4f7f\\u3063\\u3066\\u5b9f\\u88c5\\u3059\\u308b \\u30fb\\u7b2c\\uff14\\u56de \\u30d5\\u30ed\\u30f3\\u30c8\\u30a8\\u30f3\\u30c9\\u304b\\u3089graphql-request\\u3092\\u4f7f\\u3063\\u3066\\u3001\\u30c7\\u30fc\\u30bf\\u3092\\u53d6\\u5f97\\u30fb\\u8868\\u793a\\u3059\\u308b \\u30fb\\u7b2c\\uff15\\u56de graphql-request\\u3092\\u4f7f\\u3063\\u3066\\u3001\\u30c7\\u30fc\\u30bf\\u3092\\u767b\\u9332\\u30fb\\u4fee\\u6b63\\u30fb\\u524a\\u9664\\u3059\\u308b \\u307e\\u305a\\u3001\\u7b2c\\u4e00\\u56de\\u306f\\u30b5\\u30fc\\u30d0\\u30fc\\u30b5\\u30a4\\u30c9\\u306e\\u30d7\\u30ed\\u30b8\\u30a7\\u30af\\u30c8\\u3092\\u4f5c\\u308a\\u3001\\u5fc5\\u8981\\u306anpm \\u30d1\\u30c3\\u30b1\\u30fc\\u30b8\\u3092\\u5c0e\\u5165\\u3057\\u3001 npm start\\u3067 Apollo Server\\u304c\\u52d5\\u304f\\u3068\\u3053\\u308d\\u307e\\u3067\\u3002 \\u30d5\\u30a1\\u30a4\\u30eb\\u306e\\u69cb\\u6210\\u304c\\u308f\\u304b\\u308a\\u306b\\u304f\\u3044\\u3068\\u601d\\u3046\\u306e\\u3067\\u3001\\u5b8c\\u6210\\u5f62\\u306e\\u30d5\\u30a9\\u30eb\\u30c0\\u69cb\\u6210\\u3092\\u793a\\u3057\\u3066\\u304a\\u304d\\u307e\\u3059\\u3002 \\u30b5\\u30fc\\u30d0\\u30fc\\u30b5\\u30a4\\u30c9\\u306e\\u6e96\\u5099 \\u307e\\u305a\\u306f\\u958b\\u767a\\u30d5\\u30a9\\u30eb\\u30c0\\u3092\\u4f5c\\u6210\\u3057\\u307e\\u3059\\u3002 [bash] $ mkdir ~\\\/workspace $ mkdir ~\\\/workspace\\\/graphql-master $\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/catch.png\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867\\\/#mainImage\",\"width\":1178,\"height\":449},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1867#mainImage\"},\"datePublished\":\"2019-05-13T19:39:24+09:00\",\"dateModified\":\"2019-05-13T22:17:35+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#website\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/\",\"name\":\"Love Linux\",\"description\":\"enjoy using linux for programming flatform\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1","description":"\u306f\u3058\u3081\u306b GraphQL\u4f7f\u3063\u3066\u307f\u305f\u3044\u306a\u3041\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u3092\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u306fRuby\u3068nodejs\u3002\u691c\u7d22\u7d50\u679c\u306e\u91cf\u3067\u6bd4\u3079\u308b\u3068nodejs\u306e\u65b9\u304c\u591a\u3044\u3002\u3068\u304f\u306bApollo \u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u304c\u591a\u3044\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fApollo\u3067GraphQL\u3092\u5b9f\u88c5\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u3082Apollo Client\u3067\u3001\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u304c\u8abf\u3079\u3066\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Apollo Client\uff0bReact\u306f\u8272\u3005\u5236\u7d04\u304c\u3042\u3063\u3066\u4f7f\u3044\u3065\u3089\u3044\u3002\u3082\u3046\u5c11\u3057\u7a81\u3063\u8fbc\u3093\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u30b5\u30fc\u30d0\u30fc\u306b Query\u3068Mutaion\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3048\u308b\u3001graphql-request\u3068\u3044\u3046 npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002\u3053\u308c\u3092\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7d50\u69cb\u306a\u30ec\u30d9\u30eb\u3067\u601d\u3044\u901a\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067GraphQL\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u7d44\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3046\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9 Apollo Server + GraphQL + nodejs + sequelize \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9 React + Redux + graphql-request REST\u3068\u4f55\u304b\u3068\u6bd4\u8f03\u3055\u308c\u3001REST\u306e\u6b21\u4e16\u4ee3\u306eGraphQL\u3060\u3068\u8a00\u308f\u308c\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u6b63\u4f53\u3092\u7a81\u304d\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u3082\u3001\u6700\u521d\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u308b\u3068\u304d\u306f\u3001\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3057\u305f\u304c\u3001\u308f\u304b\u308a\u3060\u3059\u3068\u3059\u308b\u3059\u308b\u3068\u7406\u89e3\u304c\u9032\u307f\u307e\u3059\u3057\u3001GraphQL\u306e\u826f\u3055\u3082\u4f53\u611f\u3067\u304d\u307e\u3059\u3002 \u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\u3001\u6211\u6162\u3057\u3066\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002 \u7d50\u69cb\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u306e\u3067\u30014\u56de\u304b5\u56de\u306b\u5206\u3051\u3066\u306e\u9023\u8f09\u306b\u306a\u308a\u307e\u3059\u3002 \u30fb\u7b2c\uff11\u56de Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067(\u3053\u306e\u8a18\u4e8b) \u30fb\u7b2c\uff12\u56de Apollo Server\u914d\u4e0b\u3067\u3001GraphQL\u3092\u4f7f\u3063\u3066\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b \u30fb\u7b2c\uff13\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092React\uff0bRedux\uff0bgraphql-request\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b \u30fb\u7b2c\uff14\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b \u30fb\u7b2c\uff15\u56de graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u767b\u9332\u30fb\u4fee\u6b63\u30fb\u524a\u9664\u3059\u308b \u307e\u305a\u3001\u7b2c\u4e00\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u5fc5\u8981\u306anpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3001 npm start\u3067 Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5b8c\u6210\u5f62\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u6e96\u5099 \u307e\u305a\u306f\u958b\u767a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 [bash] $ mkdir ~\/workspace $ mkdir ~\/workspace\/graphql-master $","canonical_url":"https:\/\/lovelinux.mydns.jp\/?p=1867","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"fo5n0bjUdcitu1FsBTJqqwL580wBLhhCM51IEogDt9Y","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#article","name":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1","headline":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1","author":{"@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author"},"publisher":{"@id":"https:\/\/lovelinux.mydns.jp\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/catch.png","width":1178,"height":449},"datePublished":"2019-05-13T19:39:24+09:00","dateModified":"2019-05-13T22:17:35+09:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#webpage"},"isPartOf":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#webpage"},"articleSection":"React, Apollo, GraphQL, react"},{"@type":"BreadcrumbList","@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp#listItem","position":1,"name":"Home","item":"https:\/\/lovelinux.mydns.jp","nextItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=2#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=2#listItem","position":2,"name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","item":"https:\/\/lovelinux.mydns.jp\/?cat=2","nextItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=77#listItem","name":"React"},"previousItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=77#listItem","position":3,"name":"React","item":"https:\/\/lovelinux.mydns.jp\/?cat=77","nextItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#listItem","name":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1"},"previousItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=2#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#listItem","position":4,"name":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1","previousItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=77#listItem","name":"React"}}]},{"@type":"Person","@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author","url":"https:\/\/lovelinux.mydns.jp\/?author=1","name":"hiroshi","image":{"@type":"ImageObject","@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/e7c5ca03ae8cd5b5d36ac0f62f59c26d34fd667afa57dafb4978790c04c5146f?s=96&d=mm&r=g","width":96,"height":96,"caption":"hiroshi"}},{"@type":"WebPage","@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#webpage","url":"https:\/\/lovelinux.mydns.jp\/?p=1867","name":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1","description":"\u306f\u3058\u3081\u306b GraphQL\u4f7f\u3063\u3066\u307f\u305f\u3044\u306a\u3041\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u3092\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u306fRuby\u3068nodejs\u3002\u691c\u7d22\u7d50\u679c\u306e\u91cf\u3067\u6bd4\u3079\u308b\u3068nodejs\u306e\u65b9\u304c\u591a\u3044\u3002\u3068\u304f\u306bApollo \u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u304c\u591a\u3044\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fApollo\u3067GraphQL\u3092\u5b9f\u88c5\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u3082Apollo Client\u3067\u3001\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u304c\u8abf\u3079\u3066\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Apollo Client\uff0bReact\u306f\u8272\u3005\u5236\u7d04\u304c\u3042\u3063\u3066\u4f7f\u3044\u3065\u3089\u3044\u3002\u3082\u3046\u5c11\u3057\u7a81\u3063\u8fbc\u3093\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u30b5\u30fc\u30d0\u30fc\u306b Query\u3068Mutaion\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3048\u308b\u3001graphql-request\u3068\u3044\u3046 npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002\u3053\u308c\u3092\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7d50\u69cb\u306a\u30ec\u30d9\u30eb\u3067\u601d\u3044\u901a\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067GraphQL\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u7d44\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3046\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9 Apollo Server + GraphQL + nodejs + sequelize \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9 React + Redux + graphql-request REST\u3068\u4f55\u304b\u3068\u6bd4\u8f03\u3055\u308c\u3001REST\u306e\u6b21\u4e16\u4ee3\u306eGraphQL\u3060\u3068\u8a00\u308f\u308c\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u6b63\u4f53\u3092\u7a81\u304d\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u3082\u3001\u6700\u521d\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u308b\u3068\u304d\u306f\u3001\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3057\u305f\u304c\u3001\u308f\u304b\u308a\u3060\u3059\u3068\u3059\u308b\u3059\u308b\u3068\u7406\u89e3\u304c\u9032\u307f\u307e\u3059\u3057\u3001GraphQL\u306e\u826f\u3055\u3082\u4f53\u611f\u3067\u304d\u307e\u3059\u3002 \u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\u3001\u6211\u6162\u3057\u3066\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002 \u7d50\u69cb\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u306e\u3067\u30014\u56de\u304b5\u56de\u306b\u5206\u3051\u3066\u306e\u9023\u8f09\u306b\u306a\u308a\u307e\u3059\u3002 \u30fb\u7b2c\uff11\u56de Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067(\u3053\u306e\u8a18\u4e8b) \u30fb\u7b2c\uff12\u56de Apollo Server\u914d\u4e0b\u3067\u3001GraphQL\u3092\u4f7f\u3063\u3066\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b \u30fb\u7b2c\uff13\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092React\uff0bRedux\uff0bgraphql-request\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b \u30fb\u7b2c\uff14\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b \u30fb\u7b2c\uff15\u56de graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u767b\u9332\u30fb\u4fee\u6b63\u30fb\u524a\u9664\u3059\u308b \u307e\u305a\u3001\u7b2c\u4e00\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u5fc5\u8981\u306anpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3001 npm start\u3067 Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5b8c\u6210\u5f62\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u6e96\u5099 \u307e\u305a\u306f\u958b\u767a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 [bash] $ mkdir ~\/workspace $ mkdir ~\/workspace\/graphql-master $","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/lovelinux.mydns.jp\/#website"},"breadcrumb":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#breadcrumblist"},"author":{"@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author"},"creator":{"@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2019\/05\/catch.png","@id":"https:\/\/lovelinux.mydns.jp\/?p=1867\/#mainImage","width":1178,"height":449},"primaryImageOfPage":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1867#mainImage"},"datePublished":"2019-05-13T19:39:24+09:00","dateModified":"2019-05-13T22:17:35+09:00"},{"@type":"WebSite","@id":"https:\/\/lovelinux.mydns.jp\/#website","url":"https:\/\/lovelinux.mydns.jp\/","name":"Love Linux","description":"enjoy using linux for programming flatform","inLanguage":"en-GB","publisher":{"@id":"https:\/\/lovelinux.mydns.jp\/#person"}}]},"og:locale":"en_GB","og:site_name":"Love Linux | enjoy using linux for programming flatform","og:type":"article","og:title":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1","og:description":"\u306f\u3058\u3081\u306b GraphQL\u4f7f\u3063\u3066\u307f\u305f\u3044\u306a\u3041\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u3092\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u306fRuby\u3068nodejs\u3002\u691c\u7d22\u7d50\u679c\u306e\u91cf\u3067\u6bd4\u3079\u308b\u3068nodejs\u306e\u65b9\u304c\u591a\u3044\u3002\u3068\u304f\u306bApollo \u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u304c\u591a\u3044\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fApollo\u3067GraphQL\u3092\u5b9f\u88c5\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u3082Apollo Client\u3067\u3001\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u304c\u8abf\u3079\u3066\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Apollo Client\uff0bReact\u306f\u8272\u3005\u5236\u7d04\u304c\u3042\u3063\u3066\u4f7f\u3044\u3065\u3089\u3044\u3002\u3082\u3046\u5c11\u3057\u7a81\u3063\u8fbc\u3093\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u30b5\u30fc\u30d0\u30fc\u306b Query\u3068Mutaion\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3048\u308b\u3001graphql-request\u3068\u3044\u3046 npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002\u3053\u308c\u3092\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7d50\u69cb\u306a\u30ec\u30d9\u30eb\u3067\u601d\u3044\u901a\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067GraphQL\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u7d44\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3046\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9 Apollo Server + GraphQL + nodejs + sequelize \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9 React + Redux + graphql-request REST\u3068\u4f55\u304b\u3068\u6bd4\u8f03\u3055\u308c\u3001REST\u306e\u6b21\u4e16\u4ee3\u306eGraphQL\u3060\u3068\u8a00\u308f\u308c\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u6b63\u4f53\u3092\u7a81\u304d\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u3082\u3001\u6700\u521d\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u308b\u3068\u304d\u306f\u3001\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3057\u305f\u304c\u3001\u308f\u304b\u308a\u3060\u3059\u3068\u3059\u308b\u3059\u308b\u3068\u7406\u89e3\u304c\u9032\u307f\u307e\u3059\u3057\u3001GraphQL\u306e\u826f\u3055\u3082\u4f53\u611f\u3067\u304d\u307e\u3059\u3002 \u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\u3001\u6211\u6162\u3057\u3066\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002 \u7d50\u69cb\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u306e\u3067\u30014\u56de\u304b5\u56de\u306b\u5206\u3051\u3066\u306e\u9023\u8f09\u306b\u306a\u308a\u307e\u3059\u3002 \u30fb\u7b2c\uff11\u56de Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067(\u3053\u306e\u8a18\u4e8b) \u30fb\u7b2c\uff12\u56de Apollo Server\u914d\u4e0b\u3067\u3001GraphQL\u3092\u4f7f\u3063\u3066\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b \u30fb\u7b2c\uff13\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092React\uff0bRedux\uff0bgraphql-request\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b \u30fb\u7b2c\uff14\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b \u30fb\u7b2c\uff15\u56de graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u767b\u9332\u30fb\u4fee\u6b63\u30fb\u524a\u9664\u3059\u308b \u307e\u305a\u3001\u7b2c\u4e00\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u5fc5\u8981\u306anpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3001 npm start\u3067 Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5b8c\u6210\u5f62\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u6e96\u5099 \u307e\u305a\u306f\u958b\u767a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 [bash] $ mkdir ~\/workspace $ mkdir ~\/workspace\/graphql-master $","og:url":"https:\/\/lovelinux.mydns.jp\/?p=1867","article:published_time":"2019-05-13T10:39:24+00:00","article:modified_time":"2019-05-13T13:17:35+00:00","twitter:card":"summary_large_image","twitter:title":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1","twitter:description":"\u306f\u3058\u3081\u306b GraphQL\u4f7f\u3063\u3066\u307f\u305f\u3044\u306a\u3041\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u3092\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u306fRuby\u3068nodejs\u3002\u691c\u7d22\u7d50\u679c\u306e\u91cf\u3067\u6bd4\u3079\u308b\u3068nodejs\u306e\u65b9\u304c\u591a\u3044\u3002\u3068\u304f\u306bApollo \u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u304c\u591a\u3044\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fApollo\u3067GraphQL\u3092\u5b9f\u88c5\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u3082Apollo Client\u3067\u3001\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u304c\u8abf\u3079\u3066\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001Apollo Client\uff0bReact\u306f\u8272\u3005\u5236\u7d04\u304c\u3042\u3063\u3066\u4f7f\u3044\u3065\u3089\u3044\u3002\u3082\u3046\u5c11\u3057\u7a81\u3063\u8fbc\u3093\u3067\u8abf\u3079\u305f\u3068\u3053\u308d\u3001GraphQL\u30b5\u30fc\u30d0\u30fc\u306b Query\u3068Mutaion\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3048\u308b\u3001graphql-request\u3068\u3044\u3046 npm\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u306e\u3092\u898b\u3064\u3051\u305f\u3002\u3053\u308c\u3092\u5b9f\u969b\u4f7f\u3063\u3066\u307f\u308b\u3068\u3001\u7d50\u69cb\u306a\u30ec\u30d9\u30eb\u3067\u601d\u3044\u901a\u308a\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u7d44\u307f\u5408\u308f\u305b\u3067GraphQL\u306e\u7df4\u7fd2\u3068\u3057\u3066\u3001\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u7d44\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3046\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9 Apollo Server + GraphQL + nodejs + sequelize \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9 React + Redux + graphql-request REST\u3068\u4f55\u304b\u3068\u6bd4\u8f03\u3055\u308c\u3001REST\u306e\u6b21\u4e16\u4ee3\u306eGraphQL\u3060\u3068\u8a00\u308f\u308c\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u305d\u306e\u6b63\u4f53\u3092\u7a81\u304d\u6b62\u3081\u3089\u308c\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u3082\u3001\u6700\u521d\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u308b\u3068\u304d\u306f\u3001\u3061\u3093\u3077\u3093\u304b\u3093\u3077\u3093\u3067\u3057\u305f\u304c\u3001\u308f\u304b\u308a\u3060\u3059\u3068\u3059\u308b\u3059\u308b\u3068\u7406\u89e3\u304c\u9032\u307f\u307e\u3059\u3057\u3001GraphQL\u306e\u826f\u3055\u3082\u4f53\u611f\u3067\u304d\u307e\u3059\u3002 \u304b\u306a\u308a\u9577\u3044\u3067\u3059\u304c\u3001\u6211\u6162\u3057\u3066\u304a\u4ed8\u304d\u5408\u3044\u304f\u3060\u3055\u3044\u3002 \u7d50\u69cb\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306a\u306e\u3067\u30014\u56de\u304b5\u56de\u306b\u5206\u3051\u3066\u306e\u9023\u8f09\u306b\u306a\u308a\u307e\u3059\u3002 \u30fb\u7b2c\uff11\u56de Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067(\u3053\u306e\u8a18\u4e8b) \u30fb\u7b2c\uff12\u56de Apollo Server\u914d\u4e0b\u3067\u3001GraphQL\u3092\u4f7f\u3063\u3066\u5546\u54c1\u30de\u30b9\u30bf\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b \u30fb\u7b2c\uff13\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092React\uff0bRedux\uff0bgraphql-request\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b \u30fb\u7b2c\uff14\u56de \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304b\u3089graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u30fb\u8868\u793a\u3059\u308b \u30fb\u7b2c\uff15\u56de graphql-request\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3092\u767b\u9332\u30fb\u4fee\u6b63\u30fb\u524a\u9664\u3059\u308b \u307e\u305a\u3001\u7b2c\u4e00\u56de\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001\u5fc5\u8981\u306anpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u3001 npm start\u3067 Apollo Server\u304c\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u3002 \u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6210\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3068\u601d\u3046\u306e\u3067\u3001\u5b8c\u6210\u5f62\u306e\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u6e96\u5099 \u307e\u305a\u306f\u958b\u767a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 [bash] $ mkdir ~\/workspace $ mkdir ~\/workspace\/graphql-master $"},"aioseo_meta_data":{"post_id":"1867","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-08-22 21:17:57","updated":"2025-08-25 11:30:09","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/lovelinux.mydns.jp\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/lovelinux.mydns.jp\/?cat=2\" title=\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/lovelinux.mydns.jp\/?cat=77\" title=\"React\">React<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tApollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/lovelinux.mydns.jp"},{"label":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/lovelinux.mydns.jp\/?cat=2"},{"label":"React","link":"https:\/\/lovelinux.mydns.jp\/?cat=77"},{"label":"Apollo Server\u3001GraphQL\u3001nodejs\u3001sequesize\u3001\u30d5\u30ed\u30f3\u30c8\u306bReact+Redux\u3067 \u30de\u30b9\u30bf\u30fc\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u4f5c\u308d\u3046! \u301cVol.1","link":"https:\/\/lovelinux.mydns.jp\/?p=1867"}],"_links":{"self":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1867"}],"version-history":[{"count":14,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1867\/revisions"}],"predecessor-version":[{"id":1939,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1867\/revisions\/1939"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/media\/1914"}],"wp:attachment":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}