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