相关疑难解决方法(0)

错误“冲突解决程序拒绝突变。” 当在放大中删除时

我有一个简单的全栈放大应用程序。

\n

这是我的模型:

\n
type Note @model @auth(rules: [{allow: public}]) {\n  id: ID!\n  name: String!\n  description: String\n  image: String\n  NoteType: NoteType @connection\n}\n\ntype NoteType @model @auth(rules: [{allow: public}]) {\n  id: ID!\n  name: String!\n}\n
Run Code Online (Sandbox Code Playgroud)\n

我正在尝试删除具有以下有效负载的注释:

\n
type Note @model @auth(rules: [{allow: public}]) {\n  id: ID!\n  name: String!\n  description: String\n  image: String\n  NoteType: NoteType @connection\n}\n\ntype NoteType @model @auth(rules: [{allow: public}]) {\n  id: ID!\n  name: String!\n}\n
Run Code Online (Sandbox Code Playgroud)\n

我在响应中看到的是以下 json:

\n
{\n    "query": "mutation DeleteNote($input: DeleteNoteInput!, $condition: ModelNoteConditionInput) {\xe2\x86\xb5  deleteNote(input: $input, condition: $condition) {\xe2\x86\xb5 …
Run Code Online (Sandbox Code Playgroud)

reactjs graphql aws-amplify

8
推荐指数
1
解决办法
5953
查看次数

标签 统计

aws-amplify ×1

graphql ×1

reactjs ×1