aws-amplify / aws-amplify/docs

Inconsistent Data API "Add custom queries and mutations" code samples

Open
#7,221 0 comments 0 reactions 0 assignees View on GitHub
amplify/data amplify/gen2
Dominant language
MDX
Stars
506
Forks
1.1k
Avg merge
3h 14m
Merged PRs (30d)
1

Description

**Describe the content issue**:
A clear and concise description of what the content issue is. Is there content missing or is there incorrect content?

1. Auth in [Step 1](https://docs.amplify.aws/gen2/build-a-backend/data/custom-business-logic/#step-1---define-a-custom-query-or-mutation) does not match auth in [Step 2](https://docs.amplify.aws/gen2/build-a-backend/data/custom-business-logic/#step-2---configure-custom-business-logic-handler-code) (Step 1 is `private`, Step2 is `public`). Since we are walking customers through building these resources step-by-step, these auth rules should match.
2. "Function" code sample for `amplify/data/echo-handler/handler.ts` under [Step 2](https://docs.amplify.aws/gen2/build-a-backend/data/custom-business-logic/#step-2---configure-custom-business-logic-handler-code) includes unused `context` parameter.

**URL page where content issue is**:
https://docs.amplify.aws/gen2/build-a-backend/data/custom-business-logic/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.