【发布时间】:2020-03-28 01:17:33
【问题描述】:
我正在尝试以错误方式运行它:
deletepair = async () => {
const removePair = {
id: 'id'
pairIndex: 1,
};
try {
await API.graphql(graphqlOperation(mutations.removePairItem, {input: removePair}));
console.log('done')
}
catch (err) {
console.log('error: ', err)
}
}
当我运行 deletepair() 时出现错误:
error: TypeError: Must provide Source. Received: undefined
【问题讨论】:
标签: javascript graphql amazon-dynamodb aws-amplify aws-appsync