Skip to content

Commit 3fab5cd

Browse files
committed
Update query name and remove periods
1 parent a291631 commit 3fab5cd

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,17 +518,17 @@ Custom operations can accept different types of arguments. Understanding these o
518518

519519
When defining a custom operation, you can specify arguments using different types:
520520

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
524524

525525
```ts title="amplify/data/resource.ts"
526526
const schema = a.schema({
527527
Status: a.enum({
528528
values: ['ACCEPTED', 'REJECTED']
529529
}),
530530

531-
echo: a
531+
getPost: a
532532
.query()
533533
.arguments({
534534
// scalar field

0 commit comments

Comments
 (0)