Define the Query

To keep things simple, we’re going to be prototyping the following graphql query.

Create the Data Source

We’ll be using a special passthrough data source type, aptly named NONE. Here's all that's required to make it in CDK.

VTL Templates

The vtl request template is going to be the same for all of your prototype requests.




Setup your Environment

First you need to get your environment setup. I’m going to assume you already have node and npm installed and your globally installed packages are in your path. Once you have that setup, globally install ts-node.

npm i -g ts-node

Create the Script

If you’ve made it this far then it’s time to create your…


How to handle the transition to new queries

type Query {
oldQuery(input: OldInputType): Result! @deprecated(reason: "Use the newQuery")
newQuery(input: NewInputType): Result!
}



Learn how to easily setup a tsconfig file to build for nodejs.

npm install --save-dev @tsconfig/node14



How I got the idea to develop Wrenchly


Ben Force

I am a 4x AWS certified senior full-stack developer. I write about cloud architecture, infrastructure as code, and automation.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store