|
103 | 103 | },
|
104 | 104 | "FieldName": "getServiceVersion",
|
105 | 105 | "TypeName": "Query",
|
| 106 | + "CachingConfig": {}, |
106 | 107 | "DataSourceName": "None",
|
107 | 108 | "Kind": "UNIT",
|
108 | 109 | "RequestMappingTemplate": "{\"version\":\"2017-02-28\"}",
|
|
211 | 212 | },
|
212 | 213 | "FieldName": "getCustomers",
|
213 | 214 | "TypeName": "Query",
|
| 215 | + "CachingConfig": {}, |
214 | 216 | "DataSourceName": "Customer",
|
215 | 217 | "Kind": "UNIT",
|
216 | 218 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Scan\"}",
|
|
232 | 234 | },
|
233 | 235 | "FieldName": "getCustomer",
|
234 | 236 | "TypeName": "Query",
|
| 237 | + "CachingConfig": {}, |
235 | 238 | "DataSourceName": "Customer",
|
236 | 239 | "Kind": "UNIT",
|
237 | 240 | "RequestMappingTemplate": "{\"version\": \"2017-02-28\", \"operation\": \"GetItem\", \"key\": {\"id\": $util.dynamodb.toDynamoDBJson($ctx.args.id)}}",
|
|
253 | 256 | },
|
254 | 257 | "FieldName": "addCustomer",
|
255 | 258 | "TypeName": "Mutation",
|
| 259 | + "CachingConfig": {}, |
256 | 260 | "DataSourceName": "Customer",
|
257 | 261 | "Kind": "UNIT",
|
258 | 262 | "RequestMappingTemplate": "\n #set($input = $ctx.args.customer)\n \n {\n \"version\": \"2017-02-28\",\n \"operation\": \"PutItem\",\n \"key\" : {\n \"id\" : $util.dynamodb.toDynamoDBJson($util.autoId())\n },\n \"attributeValues\": $util.dynamodb.toMapValuesJson($input)\n }",
|
|
274 | 278 | },
|
275 | 279 | "FieldName": "saveCustomer",
|
276 | 280 | "TypeName": "Mutation",
|
| 281 | + "CachingConfig": {}, |
277 | 282 | "DataSourceName": "Customer",
|
278 | 283 | "Kind": "UNIT",
|
279 | 284 | "RequestMappingTemplate": "\n #set($input = $ctx.args.customer)\n \n {\n \"version\": \"2017-02-28\",\n \"operation\": \"PutItem\",\n \"key\" : {\n \"id\" : $util.dynamodb.toDynamoDBJson($ctx.args.id)\n },\n \"attributeValues\": $util.dynamodb.toMapValuesJson($input)\n }",
|
|
295 | 300 | },
|
296 | 301 | "FieldName": "saveCustomerWithFirstOrder",
|
297 | 302 | "TypeName": "Mutation",
|
| 303 | + "CachingConfig": {}, |
298 | 304 | "DataSourceName": "Customer",
|
299 | 305 | "Kind": "UNIT",
|
300 | 306 | "RequestMappingTemplate": "\n #set($input = $ctx.args.order)\n $util.qr($input.put(\"referral\", referral))\n {\n \"version\": \"2017-02-28\",\n \"operation\": \"PutItem\",\n \"key\" : {\n \"order\" : $util.dynamodb.toDynamoDBJson($util.autoId()),\"customer\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer.id)\n },\n \"attributeValues\": $util.dynamodb.toMapValuesJson($input)\n }",
|
|
316 | 322 | },
|
317 | 323 | "FieldName": "removeCustomer",
|
318 | 324 | "TypeName": "Mutation",
|
| 325 | + "CachingConfig": {}, |
319 | 326 | "DataSourceName": "Customer",
|
320 | 327 | "Kind": "UNIT",
|
321 | 328 | "RequestMappingTemplate": "{\"version\": \"2017-02-28\", \"operation\": \"DeleteItem\", \"key\": {\"id\": $util.dynamodb.toDynamoDBJson($ctx.args.id)}}",
|
|
435 | 442 | },
|
436 | 443 | "FieldName": "getCustomerOrdersEq",
|
437 | 444 | "TypeName": "Query",
|
| 445 | + "CachingConfig": {}, |
438 | 446 | "DataSourceName": "Order",
|
439 | 447 | "Kind": "UNIT",
|
440 | 448 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"query\" : {\n \"expression\" : \"#customer = :customer\",\n \"expressionNames\" : {\n \"#customer\" : \"customer\"\n },\n \"expressionValues\" : {\n \":customer\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer)\n }\n }}",
|
|
456 | 464 | },
|
457 | 465 | "FieldName": "getOrderCustomersEq",
|
458 | 466 | "TypeName": "Query",
|
| 467 | + "CachingConfig": {}, |
459 | 468 | "DataSourceName": "Order",
|
460 | 469 | "Kind": "UNIT",
|
461 | 470 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"index\" : \"orderIndex\", \"query\" : {\n \"expression\" : \"#order = :order\",\n \"expressionNames\" : {\n \"#order\" : \"order\"\n },\n \"expressionValues\" : {\n \":order\" : $util.dynamodb.toDynamoDBJson($ctx.args.order)\n }\n }}",
|
|
477 | 486 | },
|
478 | 487 | "FieldName": "getCustomerOrdersLt",
|
479 | 488 | "TypeName": "Query",
|
| 489 | + "CachingConfig": {}, |
480 | 490 | "DataSourceName": "Order",
|
481 | 491 | "Kind": "UNIT",
|
482 | 492 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"query\" : {\n \"expression\" : \"#customer < :customer\",\n \"expressionNames\" : {\n \"#customer\" : \"customer\"\n },\n \"expressionValues\" : {\n \":customer\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer)\n }\n }}",
|
|
498 | 508 | },
|
499 | 509 | "FieldName": "getOrderCustomersLt",
|
500 | 510 | "TypeName": "Query",
|
| 511 | + "CachingConfig": {}, |
501 | 512 | "DataSourceName": "Order",
|
502 | 513 | "Kind": "UNIT",
|
503 | 514 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"index\" : \"orderIndex\", \"query\" : {\n \"expression\" : \"#order < :order\",\n \"expressionNames\" : {\n \"#order\" : \"order\"\n },\n \"expressionValues\" : {\n \":order\" : $util.dynamodb.toDynamoDBJson($ctx.args.order)\n }\n }}",
|
|
519 | 530 | },
|
520 | 531 | "FieldName": "getCustomerOrdersLe",
|
521 | 532 | "TypeName": "Query",
|
| 533 | + "CachingConfig": {}, |
522 | 534 | "DataSourceName": "Order",
|
523 | 535 | "Kind": "UNIT",
|
524 | 536 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"query\" : {\n \"expression\" : \"#customer <= :customer\",\n \"expressionNames\" : {\n \"#customer\" : \"customer\"\n },\n \"expressionValues\" : {\n \":customer\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer)\n }\n }}",
|
|
540 | 552 | },
|
541 | 553 | "FieldName": "getOrderCustomersLe",
|
542 | 554 | "TypeName": "Query",
|
| 555 | + "CachingConfig": {}, |
543 | 556 | "DataSourceName": "Order",
|
544 | 557 | "Kind": "UNIT",
|
545 | 558 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"index\" : \"orderIndex\", \"query\" : {\n \"expression\" : \"#order <= :order\",\n \"expressionNames\" : {\n \"#order\" : \"order\"\n },\n \"expressionValues\" : {\n \":order\" : $util.dynamodb.toDynamoDBJson($ctx.args.order)\n }\n }}",
|
|
561 | 574 | },
|
562 | 575 | "FieldName": "getCustomerOrdersGt",
|
563 | 576 | "TypeName": "Query",
|
| 577 | + "CachingConfig": {}, |
564 | 578 | "DataSourceName": "Order",
|
565 | 579 | "Kind": "UNIT",
|
566 | 580 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"query\" : {\n \"expression\" : \"#customer > :customer\",\n \"expressionNames\" : {\n \"#customer\" : \"customer\"\n },\n \"expressionValues\" : {\n \":customer\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer)\n }\n }}",
|
|
582 | 596 | },
|
583 | 597 | "FieldName": "getOrderCustomersGt",
|
584 | 598 | "TypeName": "Query",
|
| 599 | + "CachingConfig": {}, |
585 | 600 | "DataSourceName": "Order",
|
586 | 601 | "Kind": "UNIT",
|
587 | 602 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"index\" : \"orderIndex\", \"query\" : {\n \"expression\" : \"#order > :order\",\n \"expressionNames\" : {\n \"#order\" : \"order\"\n },\n \"expressionValues\" : {\n \":order\" : $util.dynamodb.toDynamoDBJson($ctx.args.order)\n }\n }}",
|
|
603 | 618 | },
|
604 | 619 | "FieldName": "getCustomerOrdersGe",
|
605 | 620 | "TypeName": "Query",
|
| 621 | + "CachingConfig": {}, |
606 | 622 | "DataSourceName": "Order",
|
607 | 623 | "Kind": "UNIT",
|
608 | 624 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"query\" : {\n \"expression\" : \"#customer >= :customer\",\n \"expressionNames\" : {\n \"#customer\" : \"customer\"\n },\n \"expressionValues\" : {\n \":customer\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer)\n }\n }}",
|
|
624 | 640 | },
|
625 | 641 | "FieldName": "getOrderCustomersGe",
|
626 | 642 | "TypeName": "Query",
|
| 643 | + "CachingConfig": {}, |
627 | 644 | "DataSourceName": "Order",
|
628 | 645 | "Kind": "UNIT",
|
629 | 646 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"index\" : \"orderIndex\", \"query\" : {\n \"expression\" : \"#order >= :order\",\n \"expressionNames\" : {\n \"#order\" : \"order\"\n },\n \"expressionValues\" : {\n \":order\" : $util.dynamodb.toDynamoDBJson($ctx.args.order)\n }\n }}",
|
|
645 | 662 | },
|
646 | 663 | "FieldName": "getCustomerOrdersFilter",
|
647 | 664 | "TypeName": "Query",
|
| 665 | + "CachingConfig": {}, |
648 | 666 | "DataSourceName": "Order",
|
649 | 667 | "Kind": "UNIT",
|
650 | 668 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"query\" : {\n \"expression\" : \"#customer = :customer AND begins_with(#order, :order)\",\n \"expressionNames\" : {\n \"#customer\" : \"customer\", \"#order\" : \"order\"\n },\n \"expressionValues\" : {\n \":customer\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer), \":order\" : $util.dynamodb.toDynamoDBJson($ctx.args.order)\n }\n }}",
|
|
666 | 684 | },
|
667 | 685 | "FieldName": "getCustomerOrdersBetween",
|
668 | 686 | "TypeName": "Query",
|
| 687 | + "CachingConfig": {}, |
669 | 688 | "DataSourceName": "Order",
|
670 | 689 | "Kind": "UNIT",
|
671 | 690 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"query\" : {\n \"expression\" : \"#customer = :customer AND #order BETWEEN :order1 AND :order2\",\n \"expressionNames\" : {\n \"#customer\" : \"customer\", \"#order\" : \"order\"\n },\n \"expressionValues\" : {\n \":customer\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer), \":order1\" : $util.dynamodb.toDynamoDBJson($ctx.args.order1), \":order2\" : $util.dynamodb.toDynamoDBJson($ctx.args.order2)\n }\n }}",
|
|
687 | 706 | },
|
688 | 707 | "FieldName": "getOrderCustomersFilter",
|
689 | 708 | "TypeName": "Query",
|
| 709 | + "CachingConfig": {}, |
690 | 710 | "DataSourceName": "Order",
|
691 | 711 | "Kind": "UNIT",
|
692 | 712 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"query\" : {\n \"expression\" : \"#order = :order AND begins_with(#customer, :customer)\",\n \"expressionNames\" : {\n \"#order\" : \"order\", \"#customer\" : \"customer\"\n },\n \"expressionValues\" : {\n \":order\" : $util.dynamodb.toDynamoDBJson($ctx.args.order), \":customer\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer)\n }\n }}",
|
|
708 | 728 | },
|
709 | 729 | "FieldName": "getOrderCustomersBetween",
|
710 | 730 | "TypeName": "Query",
|
| 731 | + "CachingConfig": {}, |
711 | 732 | "DataSourceName": "Order",
|
712 | 733 | "Kind": "UNIT",
|
713 | 734 | "RequestMappingTemplate": "{\"version\" : \"2017-02-28\", \"operation\" : \"Query\", \"index\" : \"orderIndex\", \"query\" : {\n \"expression\" : \"#order = :order AND #customer BETWEEN :customer1 AND :customer2\",\n \"expressionNames\" : {\n \"#order\" : \"order\", \"#customer\" : \"customer\"\n },\n \"expressionValues\" : {\n \":order\" : $util.dynamodb.toDynamoDBJson($ctx.args.order), \":customer1\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer1), \":customer2\" : $util.dynamodb.toDynamoDBJson($ctx.args.customer2)\n }\n }}",
|
|
828 | 849 | },
|
829 | 850 | "FieldName": "getPayment",
|
830 | 851 | "TypeName": "Query",
|
| 852 | + "CachingConfig": {}, |
831 | 853 | "DataSourceName": "Payment",
|
832 | 854 | "Kind": "UNIT",
|
833 | 855 | "RequestMappingTemplate": "{\"version\": \"2017-02-28\", \"operation\": \"GetItem\", \"key\": {\"id\": $util.dynamodb.toDynamoDBJson($ctx.args.id)}}",
|
|
849 | 871 | },
|
850 | 872 | "FieldName": "savePayment",
|
851 | 873 | "TypeName": "Mutation",
|
| 874 | + "CachingConfig": {}, |
852 | 875 | "DataSourceName": "Payment",
|
853 | 876 | "Kind": "UNIT",
|
854 | 877 | "RequestMappingTemplate": "\n #set($input = $ctx.args.payment)\n \n {\n \"version\": \"2017-02-28\",\n \"operation\": \"PutItem\",\n \"key\" : {\n \"id\" : $util.dynamodb.toDynamoDBJson($util.autoId())\n },\n \"attributeValues\": $util.dynamodb.toMapValuesJson($input)\n }",
|
|
909 | 932 | },
|
910 | 933 | "FieldName": "doPostOnAws",
|
911 | 934 | "TypeName": "Mutation",
|
| 935 | + "CachingConfig": {}, |
912 | 936 | "DataSourceName": "http",
|
913 | 937 | "Kind": "UNIT",
|
914 | 938 | "RequestMappingTemplate": "{\n \"version\": \"2018-05-29\",\n \"method\": \"POST\",\n # if full path is https://api.xxxxxxxxx.com/posts then resourcePath would be /posts\n \"resourcePath\": \"/path/123\",\n \"params\":{\n \"body\": $util.toJson($ctx.args),\n \"headers\":{\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"$ctx.request.headers.Authorization\"\n }\n }\n }",
|
|
0 commit comments