File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/pages/[platform]/build-a-backend/data/custom-business-logic Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -518,17 +518,17 @@ Custom operations can accept different types of arguments. Understanding these o
518
518
519
519
When defining a custom operation, you can specify arguments using different types:
520
520
521
- - ** Scalar Fields** : Basic types such as ` string ` , ` integer ` , ` float ` , etc.
522
- - ** Custom Types** : Define inline ` customType ` .
523
- - ** Reference Types** : Use ` a.ref() ` to reference enums and custom types.
521
+ - ** Scalar Fields** : Basic types such as ` string ` , ` integer ` , ` float ` , etc
522
+ - ** Custom Types** : Define inline ` customType `
523
+ - ** Reference Types** : Use ` a.ref() ` to reference enums and custom types
524
524
525
525
``` ts title="amplify/data/resource.ts"
526
526
const schema = a .schema ({
527
527
Status: a .enum ({
528
528
values: [' ACCEPTED' , ' REJECTED' ]
529
529
}),
530
530
531
- echo : a
531
+ getPost : a
532
532
.query ()
533
533
.arguments ({
534
534
// scalar field
You can’t perform that action at this time.
0 commit comments