Repository navigation
fix(data): add native client examples to batch DynamoDB operations page - #8632
Merged
Merged
Conversation
VarshithaPamisetty
marked this pull request as ready for review
October 26, 2026 10:58
cadivus
approved these changes
Oct 26, 2026
soberm
approved these changes
Oct 27, 2026
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
Step 3 of the batch DynamoDB operations page served TypeScript client code (
client.mutations.batchCreatePost) to all nine platforms, because the section had noInlineFilterat all. Added Swift, Android, and Flutter examples using raw GraphQL, and scoped the existing TypeScript example to the JS platforms.Two schema defects the examples exposed. The
Postmodel had no authorization rule at any level, so neitheramplify/data/resource.tsblock could be deployed:.transform()fails with "ModelPostis missing authorization rules". And Step 1 declared the mutation argument ascontentwhile the handler readsctx.args.contentsand every client call passescontents. Both are fixed, and the deployed schema now matches the page.The custom operation is renamed
BatchCreatePosttobatchCreatePost, with the handler file renamed to match, so it follows the convention used by every other custom operation in the Gen2 data docs.The parent custom business logic page carried the same comments, two of which were inaccurate:
// arguments that this query acceptsand// return type of the queryboth sat on thelikePostmutation, and// 3. set the function has the handlerread "has" for "as". Those comments restate what the adjacent code already says, so they are removed rather than corrected. Thehighlight-*renderer directives are kept, sinceTokenList.tsxparses them to produce the highlight affordance.Checks
yarn buildsucceeds with no errorsRefs #8267