aws-amplify / aws-amplify/docs
VTL example using variables that are not defined in the code snippet
Open
amplify/data
p2
- Dominant language
- MDX
- Stars
- 506
- Forks
- 1.1k
- Avg merge
- 3h 14m
- Merged PRs (30d)
- 1
Description
**Page**: [`/cli/graphql/examples-and-solutions`](https://docs.amplify.aws/cli/graphql/examples-and-solutions/#17-get-sales-representatives-ranked-by-order-total-and-sales-period)
**Feedback**:
CDK snippet is missing the variables referenced in the VTL snippet

```ts
const apiIdRef = cdk.Fn.Ref(retVal.api[''].GraphQLAPIIdOutput)
const envRef = cdk.Fn.Ref('env')
```
Contributor guide
Assessment
This issue has not been assessed yet.