{"id":48160,"date":"2023-03-19T13:58:16","date_gmt":"2024-01-05T13:48:58","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/"},"modified":"2024-04-29T19:36:07","modified_gmt":"2024-04-29T11:36:07","slug":"%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/","title":{"rendered":"\u4f7f\u7528AppSync\u548cGraphQL\u64cd\u4f5cDynamoDB"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u6709\u4e00\u5929\uff0c\u5f53\u6211\u8c08\u5230\u5c06\u6211\u4eec\u516c\u53f8\u7684IoT.kyoto VIS\u5e94\u7528\u5728Serverless\u4e0a\u8fdb\u884c\u66ff\u6362\u65f6\uff0c\u6709\u4e2a\u4eba\u770b\u4e86\u770b\u67b6\u6784\u540e\u7ed9\u51fa\u4e86\u5efa\u8bae\uff1a\u201cAPI\u7684\u90e8\u5206\u4e3a\u4ec0\u4e48\u4e0d\u7528AppSync\u6765\u5b9e\u73b0\u5462\uff1f\u201d\u56e0\u6b64\uff0c\u6211\u5c31\u5f00\u59cb\u4f7f\u7528AppSync\u6765\u5b66\u4e60GraphQL\u3002<br \/>\n\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u7684\u76ee\u6807\u662f\u4f7f\u7528\u7b80\u5355\u7684GraphQL\u64cd\u4f5cDynamoDB\u7684\u6570\u636e\uff0c\u5e76\u5c06\u6b65\u9aa4\u4e00\u4e00\u8bb0\u5f55\u4e0b\u6765\u3002<\/p>\n<h2>GraphQL \u662f\u4e00\u79cd\u67e5\u8be2\u8bed\u8a00\uff0c\u53ef\u4ee5\u7528\u6765\u63cf\u8ff0\u548c\u8bf7\u6c42\u6570\u636e\u3002<\/h2>\n<pre class=\"post-pre\"><code>GraphQL\u306fAPI\u7528\u306e\u30af\u30a8\u30ea\u8a00\u8a9e\u3067\u3042\u308a\u3001\u30c7\u30fc\u30bf\u7528\u306b\u5b9a\u7fa9\u3057\u305f\u578b\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3057\u3066\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u3059\u3002\r\nGraphQL\u306f\u3001\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u307e\u305f\u306f\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u306b\u7d50\u3073\u3064\u3044\u3066\u304a\u3089\u305a\u3001\u4ee3\u308f\u308a\u306b\u65e2\u5b58\u306e\u30b3\u30fc\u30c9\u3068\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002\r\n<\/code><\/pre>\n<p>\u5f15\u7528\uff1ahttps:\/\/graphql.org\/learn\/<\/p>\n<p>\u5f15\u6587\u6765\u6e90\uff1ahttps:\/\/graphql.org\/learn\/<\/p>\n<p>\u55ef\uff0c\u611f\u89c9\u5b83\u53ef\u80fd\u4f1a\u4ee3\u66ffRESTAPI\uff01<\/p>\n<h2>AppSync\u662f\u4ec0\u4e48<\/h2>\n<pre class=\"post-pre\"><code>AWS AppSync \u3067\u306f\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u306e\u30c7\u30fc\u30bf\u304c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002\r\n\u307e\u305f\u3001\u30aa\u30d5\u30e9\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u304c\u518d\u63a5\u7d9a\u3059\u308b\u3068\u3059\u3050\u306b\u30c7\u30fc\u30bf\u304c\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002AWS AppSync \u306b\u3088\u308a\u3001\u5fdc\u7b54\u6027\u306b\u512a\u308c\u305f\u5354\u50cd\u7684\u306a\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3001\r\n\u5171\u540c\u306e\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7c21\u5358\u306b\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002\r\n\r\nAWS AppSync \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001iOS\u3001Android\u3001JavaScript\u3001React Native \u3092\u4f7f\u3063\u3066\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\r\n\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002\r\nAWS AppSync \u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u3057\u3066\u3001\u4f7f\u7528\u3092\u958b\u59cb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u3001\u51e6\u7406\u3001\u53d6\u5f97\u306b\u5fc5\u8981\u306a\u3082\u306e\u3059\u3079\u3066\u306f\u3001AWS AppSync \u3067\u7ba1\u7406\u3055\u308c\u307e\u3059\u3002\r\n<\/code><\/pre>\n<p>\u8bf7\u53c2\u8003\u4ee5\u4e0b\u5f15\u7528: https:\/\/aws.amazon.com\/cn\/appsync\/<\/p>\n<p>\u5982\u679c\u4f60\u5728AWS\u4e0a\u4f7f\u7528GraphQL\uff0c\u90a3\u4e48\u8bf7\u5c06AppSync\u89c6\u4e3a\u5fc5\u5907\u7684\u5de5\u5177\u3002<\/p>\n<h2>\u89d2\u8272\u5165\u573a<\/h2>\n<p>\u5728AWSAppSync\u4e2d\uff0c\u4e3b\u8981\u6709\u8fd9\u4e48\u591a\u7684\u89d2\u8272\u51fa\u73b0\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/12-0.png\" alt=\"image.png\" \/><\/div>\n<h3>\u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3<\/h3>\n<p>\u53d1\u51fa\u5bf9\u5df2\u5b9a\u4e49\u7684GraphQL API\u7684\u8c03\u7528\u3002<br \/>\n\u4f1a\u751f\u6210\u4e00\u4e2a\u7528\u4e8e\u8c03\u7528\u7684\u8bbe\u7f6e\u6587\u4ef6\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/15-0.png\" alt=\"image.png\" \/><\/div>\n<h3>\u65b9\u6848<\/h3>\n<p>GraphQL\u7684\u5b9a\u4e49\u662f\u8bbe\u7f6eAPI\u548c\u4f7f\u7528\u5143\u7d20\u7684\u7c7b\u578b\u5b9a\u4e49\u7b49\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/18-0.png\" alt=\"AWS AppSync Console 2018-11-06 18-11-14.png\" \/><\/div>\n<h3>\u89e3\u51b3\u8005<\/h3>\n<p>API\u7684\u4f5c\u7528\u662f\u5b9a\u4e49\u64cd\u4f5c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/21-0.png\" alt=\"AWS AppSync Console 2018-11-06 18-11-53.png\" \/><\/div>\n<h2>\u8fd9\u6b21\u7684\u76ee\u6807<\/h2>\n<p>\u6211\u5011\u6703\u6309\u7167\u756b\u50cf\u7684\u65b9\u5f0f\u5728DynamoDB\u9032\u884cPutItem\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/24-0.png\" alt=\"DynamoDB \u00b7 AWS Console 2018-11-06 18-00-22.png\" \/><\/div>\n<h2>\u5f00\u59cb\u5de5\u4f5c\uff01<\/h2>\n<h3>\u521b\u5efaAPI<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/27-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-32-37.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/28-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-35-03.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/29-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-36-36.png\" \/><\/div>\n<h3>\u521b\u5efaSchema<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/31-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-37-52.png\" \/><\/div>\n<p>\u6211\u4eec\u5c06\u5148\u521b\u5efa\u4e00\u4e2aDynamoDB\u8868\u3002\u53ea\u9700\u8981\u66f4\u6539\u8868\u540d\uff0c\u5176\u4ed6\u8bbe\u7f6e\u5c06\u6309\u9ed8\u8ba4\u914d\u7f6e\u521b\u5efa\u8868\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/33-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-39-15.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/34-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-44-59.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/35-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-47-34.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/36-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-45-29.png\" \/><\/div>\n<p>\u901a\u8fc7\u8fd9\u4e2a\u64cd\u4f5c\uff0cDynamoDB\u4f1a\u521b\u5efa\u4e00\u4e2a\u8868\u3002<br \/>\n\u540c\u65f6\uff0c\u4f1a\u81ea\u52a8\u751f\u6210\u8fd9\u6837\u7684Schema\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/38-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-51-36.png\" \/><\/div>\n<h2>\u6267\u884c\u5b9e\u9645\u67e5\u8be2<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/40-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-55-08.png\" \/><\/div>\n<p>\u6253\u5f00\u8fd9\u4e2a\u63a7\u5236\u53f0\u754c\u9762\u540e\uff0c\u60a8\u5c06\u770b\u5230\u5de6\u4fa7\u662f\u7528\u4e8e\u8f93\u5165GraphQL\u7684\u533a\u57df\uff0c\u53f3\u4fa7\u5219\u5c55\u793a\u6267\u884c\u7ed3\u679c\u7684\u533a\u57df\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/42-0.png\" alt=\"AWS AppSync Console 2018-11-06 17-56-35.png\" \/><\/div>\n<p>\u8ba9\u6211\u4eec\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u9879\u76ee\u3002<br \/>\n\u8981\u8fdb\u884c\u521b\u5efa\uff0c\u9700\u8981\u8c03\u7528\u540d\u4e3acreateMyCustomType\u7684API\u3002<br \/>\n\u4e3a\u4e86\u8c03\u7528\u4e0a\u8ff0API\uff0c\u9700\u8981\u4ec0\u4e48\u5462\uff1f<br \/>\n\u5982\u679c\u67e5\u770b\u6a21\u5f0f\uff0c\u53ef\u4ee5\u786e\u8ba4\u4e00\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code>createMyCustomType(input: CreateMyCustomTypeInput!): MyCustomType\r\n<\/code><\/pre>\n<p>\u6709\u8fd9\u6837\u7684\u63cf\u8ff0\u3002\u7531\u4e8e\u5199\u6709\u300cCreateMyCustomTypeInput\uff01\u300d\uff0c\u90a3\u4e48\u6211\u4eec\u9700\u8981\u4ec0\u4e48\u6837\u7684\u8f93\u5165\u5462\uff1f\u8ba9\u6211\u4eec\u6765\u786e\u8ba4\u4e00\u4e0b\u300cCreateMyCustomTypeInput\u300d\u3002<\/p>\n<pre class=\"post-pre\"><code>input CreateMyCustomTypeInput {\r\n    title: String!\r\n    content: String!\r\n    price: Int\r\n    rating: Float\r\n}\r\n<\/code><\/pre>\n<p>\u56e0\u4e3a\u5199\u7740\u8fd9\u6837\uff0c\u6240\u4ee5\u6807\u9898\uff08title\uff09\u548c\u5185\u5bb9\uff08content\uff09\u662f\u5fc5\u9700\u7684\u3002\u7c7b\u578b\u5e94\u4e3a\u5b57\u7b26\u4e32\uff08String\uff09\uff0c\u6240\u4ee5\u5c06\u4ee5\u4e0b\u6587\u672c\u7c98\u8d34\u5230\u63a7\u5236\u53f0\u5c4f\u5e55\u7684\u5de6\u4fa7\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nmutation create {\r\n  createMyCustomType(input: {\r\n    title: \"\u30c6\u30b9\u30c8\u30bf\u30a4\u30c8\u30eb\"\r\n    content: \"\u30c6\u30b9\u30c8\u3067\u3059\u3088\u3088\u3088\u3002\"\r\n  }) {\r\n    id\r\n    title\r\n    content\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u70b9\u51fb\u5de6\u4e0a\u89d2\u7684\u6267\u884c\u6309\u94ae\uff0c<\/p>\n<pre class=\"post-pre\"><code>\r\n{\r\n  \"data\": {\r\n    \"createMyCustomType\": {\r\n      \"id\": \"2033baef-fb4e-4bf6-a155-f08775103994\",\r\n      \"title\": \"\u30c6\u30b9\u30c8\u30bf\u30a4\u30c8\u30eb\",\r\n      \"content\": \"\u30c6\u30b9\u30c8\u3067\u3059\u3088\u3088\u3088\u3002\"\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u8fd4\u56de\u4e86\u8fd9\u6837\u7684\u6267\u884c\u7ed3\u679c\uff0c\u5e76\u4e14\u5c06\u9879\u76ee\u653e\u7f6e\u5728\u4e86DynamoDB\u4e2d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/52-0.png\" alt=\"DynamoDB \u00b7 AWS Console 2018-11-06 18-00-22.png\" \/><\/div>\n<p>\u8ba9\u6211\u4eec\u5c1d\u8bd5\u83b7\u53d6\u521b\u5efa\u7684\u9879\u76ee\u3002\u5c06\u4ee5\u4e0b\u6587\u672c\u7c98\u8d34\u5230\u63a7\u5236\u53f0\u5c4f\u5e55\u7684\u5de6\u4fa7\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\nquery list {\r\n  listMyCustomTypes {\r\n    items {\r\n      id\r\n      title\r\n      content\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u5f53\u60a8\u70b9\u51fb\u5de6\u4e0a\u89d2\u7684\u6267\u884c\u6309\u94ae\u65f6\uff0c\u6548\u679c\u662f\u76f8\u540c\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>\r\n{\r\n  \"data\": {\r\n    \"listMyCustomTypes\": {\r\n      \"items\": [\r\n        {\r\n          \"id\": \"2033baef-fb4e-4bf6-a155-f08775103994\",\r\n          \"title\": \"\u30c6\u30b9\u30c8\u30bf\u30a4\u30c8\u30eb\",\r\n          \"content\": \"\u30c6\u30b9\u30c8\u3067\u3059\u3088\u3088\u3088\u3002\"\r\n        }\r\n      ]\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u83b7\u53d6\u5230\u7c7b\u4f3c\u4e0a\u8ff0\u7684\u7ed3\u679c\uff0c\u5e76\u53ef\u4ee5\u83b7\u53d6\u5230\u521b\u5efa\u7684\u9879\u76ee\u7684\u4fe1\u606f\u3002\u8fd8\u6709\u5176\u4ed6\u63d0\u4f9b\u7684API\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4e00\u4e0b\u3002\u4f7f\u7528\u65b9\u6cd5\u4e0ecreateMyCustomType\u76f8\u540c\u3002<\/p>\n<pre class=\"post-pre\"><code>type Mutation {\r\n    createMyCustomType(input: CreateMyCustomTypeInput!): MyCustomType\r\n    updateMyCustomType(input: UpdateMyCustomTypeInput!): MyCustomType\r\n    deleteMyCustomType(input: DeleteMyCustomTypeInput!): MyCustomType\r\n}\r\n\r\ntype Query {\r\n    getMyCustomType(id: ID!): MyCustomType\r\n    listMyCustomTypes(filter: TableMyCustomTypeFilterInput, limit: Int, nextToken: String): MyCustomTypeConnection\r\n}\r\n<\/code><\/pre>\n<h2>\u6700\u540e\u4e00\u70b9<\/h2>\n<p>\u8fd9\u6b21\u4ecb\u7ecd\u7684\u53ea\u662f\u4e00\u5c0f\u90e8\u5206\u3002\u8fd8\u53ef\u4ee5\u81ea\u5df1\u5236\u4f5cAPI\uff0c\u8bbe\u7f6e\u591a\u4e2a\u6570\u636e\u6e90\uff08\u5982DynamoDB\u8868\uff09\uff0c\u53ef\u4ee5\u505a\u8bb8\u591a\u4e0d\u540c\u7684\u4e8b\u60c5\u3002<br \/>\n\u6211\u81ea\u5df1\u8fd8\u6709\u5f88\u591a\u4e8b\u60c5\u6ca1\u6709\u5c1d\u8bd5\u8fc7\uff0c\u6240\u4ee5\u4ee5\u540e\u8fd8\u8981\u66f4\u6df1\u5165\u5730\u63a2\u7d22\u3002<br \/>\n\u518d\u89c1\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u6709\u4e00\u5929\uff0c\u5f53\u6211\u8c08\u5230\u5c06\u6211\u4eec\u516c\u53f8\u7684IoT.kyoto VIS\u5e94\u7528\u5728Serverless\u4e0a\u8fdb\u884c\u66ff\u6362\u65f6\uff0c\u6709\u4e2a\u4eba\u770b\u4e86 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-48160","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528AppSync\u548cGraphQL\u64cd\u4f5cDynamoDB - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528appsync\u548cgraphql\u64cd\u4f5cdynamodb\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528AppSync\u548cGraphQL\u64cd\u4f5cDynamoDB\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u6709\u4e00\u5929\uff0c\u5f53\u6211\u8c08\u5230\u5c06\u6211\u4eec\u516c\u53f8\u7684IoT.kyoto VIS\u5e94\u7528\u5728Serverless\u4e0a\u8fdb\u884c\u66ff\u6362\u65f6\uff0c\u6709\u4e2a\u4eba\u770b\u4e86 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528appsync\u548cgraphql\u64cd\u4f5cdynamodb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-05T13:48:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T11:36:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/12-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/\",\"name\":\"\u4f7f\u7528AppSync\u548cGraphQL\u64cd\u4f5cDynamoDB - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-01-05T13:48:58+00:00\",\"dateModified\":\"2024-04-29T11:36:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528AppSync\u548cGraphQL\u64cd\u4f5cDynamoDB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528AppSync\u548cGraphQL\u64cd\u4f5cDynamoDB - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528appsync\u548cgraphql\u64cd\u4f5cdynamodb\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528AppSync\u548cGraphQL\u64cd\u4f5cDynamoDB","og_description":"\u9996\u5148 \u6709\u4e00\u5929\uff0c\u5f53\u6211\u8c08\u5230\u5c06\u6211\u4eec\u516c\u53f8\u7684IoT.kyoto VIS\u5e94\u7528\u5728Serverless\u4e0a\u8fdb\u884c\u66ff\u6362\u65f6\uff0c\u6709\u4e2a\u4eba\u770b\u4e86 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528appsync\u548cgraphql\u64cd\u4f5cdynamodb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-01-05T13:48:58+00:00","article_modified_time":"2024-04-29T11:36:07+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d8381913a08637a6b3933\/12-0.png"}],"author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/","name":"\u4f7f\u7528AppSync\u548cGraphQL\u64cd\u4f5cDynamoDB - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-01-05T13:48:58+00:00","dateModified":"2024-04-29T11:36:07+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528AppSync\u548cGraphQL\u64cd\u4f5cDynamoDB"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8appsync%e5%92%8cgraphql%e6%93%8d%e4%bd%9cdynamodb\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=48160"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48160\/revisions"}],"predecessor-version":[{"id":87228,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48160\/revisions\/87228"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=48160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=48160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=48160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}