Skip to content

Commit c0c7169

Browse files
committed
update enum syntax
1 parent 3fab5cd commit c0c7169

File tree

1 file changed

+2
-4
lines changed
  • src/pages/[platform]/build-a-backend/data/custom-business-logic

1 file changed

+2
-4
lines changed

src/pages/[platform]/build-a-backend/data/custom-business-logic/index.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,8 @@ When defining a custom operation, you can specify arguments using different type
524524

525525
```ts title="amplify/data/resource.ts"
526526
const schema = a.schema({
527-
Status: a.enum({
528-
values: ['ACCEPTED', 'REJECTED']
529-
}),
530-
527+
Status: a.enum(['ACCEPTED', 'REJECTED']),
528+
531529
getPost: a
532530
.query()
533531
.arguments({

0 commit comments

Comments
 (0)