title: Custom query/mutation with VTL resolver
body: <p>Is not clear to me what I have to do to create custom query/mutation and use VTL resolver. Consider the following schema</p>
  <pre><code>type Post @model {
    title: String
  }
  </code></pre>
  <p>I want to add the following custom mutations (please note that this is a very simple example)</p>
  <pre><code>type Mutations {
    promotePost(): Post
  }
  </code></pre>
  <p>After manually add Mutation.promotePost.req.vtl and Mutation.promotePost.res.vtl inside resolvers directory (not build/resolvers directory) if I try to invoke the mutation I get the following error</p>
  <blockquote>
  <p>resolve is not a function</p>
  </blockquote>
  <p>I am using transformation v2. Looking at the documentation I understand that I have to create a custom VTL resolver for each custom query/mutation but for me this is an expensive operation (that I have to repeat for each custom query/mutation I want).</p>
  <p>Is this the only way? Am I missing something?</p>
  <p>The same question has been posted <a href="https://docs.amplify.aws/cli/graphql/custom-business-logic/#vtl-resolver" rel="nofollow noreferrer">here</a></p>