We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac05b9 commit c2ec5c0Copy full SHA for c2ec5c0
src/pages/[platform]/start/manual-installation/index.mdx
@@ -118,7 +118,13 @@ Or define your data resource:
118
```ts title="amplify/data/resource.ts"
119
import { a, defineData, type ClientSchema } from '@aws-amplify/backend';
120
121
-const schema = a.schema({});
+const schema = a.schema({
122
+ Todo: a.model({
123
+ content: a.string(),
124
+ isDone: a.boolean()
125
+ })
126
+ .authorization(allow => [allow.publicApiKey()])
127
+});
128
129
export type Schema = ClientSchema<typeof schema>;
130
export const data = defineData({
0 commit comments