diff --git a/amplify/backend/api/allamplifychatt/schema.graphql b/amplify/backend/api/allamplifychatt/schema.graphql index ebee544..760fd22 100644 --- a/amplify/backend/api/allamplifychatt/schema.graphql +++ b/amplify/backend/api/allamplifychatt/schema.graphql @@ -27,7 +27,7 @@ type Conversation type Message @model(subscriptions: null, queries: null) - @auth(rules: [{ allow: owner, ownerField: "authorId" }]) { + @auth(rules: [{ allow: owner, ownerField: "authorId", operations: [create, update, delete]}]) { id: ID! author: User @connection(name: "UserMessages", keyField: "authorId") authorId: String @@ -58,4 +58,4 @@ type Subscription { @aws_subscribe(mutations: ["createConvoLink"]) onCreateMessage(messageConversationId: ID!): Message @aws_subscribe(mutations: ["createMessage"]) -} \ No newline at end of file +}