JavaScript(node.js)で値の表示と更新が両立できなくて困っています

JavaScript_1

1export const schema = { 2 models: { 3 4 5 Shop: { 6 name: 'Shop', 7 fields: { 8 id: { 9 name: 'id', 10 isArray: false, 11 type: 'ID', 12 isRequired: true, 13 attributes: [], 14 }, 15 no: { 16 name: 'no', 17 isArray: false, 18 type: 'Int', 19 isRequired: false, 20 attributes: [], 21 }, 22 name: { 23 name: 'name', 24 isArray: false, 25 type: 'String', 26 isRequired: false, 27 attributes: [], 28 }, 29 pointRewardRatio: { 30 name: 'pointRewardRatio', 31 isArray: false, 32 type: 'Number', 33 isRequired: false, 34 attributes: [], 35 }, 36 createdAt: { 37 name: 'createdAt', 38 isArray: false, 39 type: 'AWSDateTime', 40 isRequired: false, 41 attributes: [], 42 isReadOnly: true, 43 }, 44 updatedAt: { 45 name: 'updatedAt', 46 isArray: false, 47 type: 'AWSDateTime', 48 isRequired: false, 49 attributes: [], 50 isReadOnly: true, 51 }, 52 }, 53 syncable: true, 54 pluralName: 'Shops', 55 attributes: [ 56 { 57 type: 'model', 58 properties: {}, 59 }, 60 { 61 type: 'key', 62 properties: { 63 name: 'byGroup', 64 fields: ['groupID'], 65 }, 66 }, 67 { 68 type: 'auth', 69 properties: { 70 rules: [ 71 { 72 allow: 'public', 73 operations: ['create', 'update', 'delete', 'read'], 74 }, 75 ], 76 }, 77 }, 78 ], 79 }, 80 }, 81};

コメントを投稿

0 コメント