Passing params to graphql endpoint

So having a little issue getting my params into my lambda functions and been struggling with this for quite a bit.

Here is a simple code snippet. All my endpoints are being hit, I can connect to my database but for the life of me, I can’t seem to pass variables to the handlers.

const typeDefs = gql`
  type Query {
    hello: String
  }
  type Mutation {
    hi(id: String!): String
  }
`;

const resolvers = {
  Query: {
    hello: createUser
  },
  Mutation: {
    hi: postUser
  }
};

postUser = (id: string) => {
 ... This connects to database and then returns a string but my id is always null
}

// graphql query in playground:

mutation hi {
  hi(id: "hi")
}

That returns the correct string, but I can’t use any the id and super frustrated. I hope someone can point out what I’m doing wrong.

Thanks so much,

Chris

Nevermind should have gone deeper into the docs…