dynobase-icon
Dynobase

Error: dynamodb getItem() is not a function

Rafal Wilinski

Answered by Rafal Wilinski

Last updated: October 23rd, 2026

Solution

getItem is not a function is a JavaScript API mismatch, not a missing DynamoDB permission. In SDK v2 the low-level client had getItem and DocumentClient had get; v3 command-based clients use send.

import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
import { DynamoDBDocumentClient, GetCommand } from "@aws-sdk/lib-dynamodb";

const db = DynamoDBDocumentClient.from(new DynamoDBClient({}));

const { Item } = await db.send(new GetCommand({
  TableName: "Orders",
  Key: { pk: "CUSTOMER#123", sk: "ORDER#42" },
}));
console.log(Item);

Install @aws-sdk/client-dynamodb and @aws-sdk/lib-dynamodb for this example. For a low-level v3 client, import GetItemCommand from client-dynamodb and supply typed values such as { S: "CUSTOMER#123" }. Do not append .promise() to v3 send calls.

Check that the variable is a client instance rather than an imported module, configuration object or mock. JavaScript is case-sensitive. If a wrapper intentionally exposes getItem, verify its initialization and API separately.

See JavaScript examples and AWS documentation.

Dynobase is a Professional GUI Client for DynamoDB

Start your 7-day free trial today

Product Features

Download
/
Changelog
/
Pricing
/
Member Portal
/
Privacy
/
EULA
/
Twitter
© 2026 Dynobase
+
Still using AWS DynamoDB Console?
Try Dynobase to accelerate your DynamoDB workflow. Start your 7-day free trial today.