learnshopify.dev/Workspace
local task

Make your Function expand a bundle product into the products inside it.

Pass criterion: Your Function expands the bundle product, still merges a complete bundle, and your own two tests pass.
$ npx @learnshopifydev/cli check expand-the-bundle
1. Add this to the input query

Paste this inside `... on ProductVariant` in `src/cart_transform_run.graphql`, next to `bundleRules`. Keep the two names, because the check sends carts that use them.

2. Update the Function's types

3. Paste this above `cartTransformRun` in `src/cart_transform_run.ts`

This is an empty function called `itemsForParent`, which your agent fills in.

4. Paste this inside `cartTransformRun`

Put it between the line `const operations` and the loop that merges.

5. Give your agent the job

Paste this message to your agent.

6. Build the Function

When it builds without an error, commit: `git add -A`, then `git commit -m "Function expands a bundle"`.

0 / 1 task solved