Skip to content

Commit c7f3e91

Browse files
authored
adds missing auth rules on sample schema (#7996)
1 parent 139f9d9 commit c7f3e91

File tree

1 file changed

+1
-1
lines changed
  • src/pages/[platform]/how-amplify-works/concepts

1 file changed

+1
-1
lines changed

src/pages/[platform]/how-amplify-works/concepts/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const schema = a.schema({
8585
chat: a.belongsTo('Chat', 'chatId'),
8686
chatId: a.id()
8787
}),
88-
});
88+
}).authorization((allow) => allow.owner());
8989
```
9090

9191
On your app's frontend, you can use the `generateClient` function, which provides a typed client instance, making it easy to integrate CRUD (create, read, update, delete) operations for your models in your application code.

0 commit comments

Comments
 (0)