title: Issue with invoking lambda from another lambda
body: <p>I have 2 Lambda functions that I would like to call directly not through API Gateway. Lambda function A is Calling Lambda B along with queryStringParameters. For some reasons I'm getting this error </p>
  
  <blockquote>
    <p>{ UnexpectedParameter: Unexpected key 'queryStringParameters' found in params</p>
  </blockquote>
  
  <p>This is my Lambda A function</p>
  
  <pre><code>    var aws = require('aws-sdk');
  var lambda = new aws.Lambda({
    region: 'eu-central-1'
  });    
  exports.handler = (event, context, callback) =&gt; {
  var params = {
        FunctionName: "function-getStats", 
        InvocationType: "RequestResponse", 
        LogType: "Tail", 
        "queryStringParameters" : { "fn" : "latest_no" }
       };
       lambda.invoke(params, function(err, data) {
         if (err) console.log(err, err.stack); // an error occurred
         else     console.log(data);           // successful response
       });
  };
  </code></pre>
  
  <p>Which is calling Lambda B as below</p>
  
  <pre><code>var AWS = require('aws-sdk');
  AWS.config.update({region: 'eu-central-1'});
  var ddb = new AWS.DynamoDB.DocumentClient({apiVersion: '2012-08-10'});
  
  exports.handler = (event, context, callback) =&gt; {
      var fn = event["queryStringParameters"]['fn'];
  ...
  ..
  
  
  //If successful return the following response
       console.log("Success", items);
                  callback(null, {
                      'statusCode': '200',
                      'body': JSON.stringify(items),
                      'headers': {
                          "Access-Control-Allow-Origin": "*"
  
                      },
                      'isBase64Encoded': false
                  });
  </code></pre>
  
  <p>Can someone please advise how to fix this?</p>