title: aws amplify graphql computed field inline resolver
body: <p>For complex field resolver, I know <a href="https://docs.amplify.aws/cli/graphql-transformer/directives#function" rel="nofollow noreferrer">@function directive</a> is the way to go.</p>
  
  <p>But how about those very simple computed fields. @function directive with lambda is a little too much. I see prisma has inline javascript function supported. see <a href="https://stackoverflow.com/a/55033761/1443505">the answer</a> of similar quest.</p>
  
  <p>Not sure whether aws-amplify graphql support inline function. </p>