I am trying to get single Item through dynamoDB using Javascript here my code

```
var params = {
    TableName: 'sharedata',
    Key: {
        id: _id
    },
    ProjectionExpression: 'ATTRIBUTE_NAME'
    };

ddb.getItem(params, function(err, data) {
    if (err) {
        console.log("Error", err);
    } else {
        console.log("Success", data.Item);
    }
    });

```

and here my table in dynamoDB.

[![enter image description here](https://i.stack.imgur.com/ez2rz.png)](https://i.stack.imgur.com/ez2rz.png)

I am facing error: Expected params.Key['id'] to be a structure. What I am missing I am trying same as per docs [reading writing a single Item in dynamoDB](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/dynamodb-example-table-read-write.html)