I have gone through all the types of documentation provided about the CosmosDB Read Item method. But it doesn't seem to work.
const item = container.item(id, undefined);
console.log("Read item '" + item.id + "'");
const { resource: readDoc } = await item.read();
console.log("item with id found: '", readDoc);
The ID I pass is '1' and there is a record with id '1' in the collection. It always return as undefined. Anybody already know how this works?
Here are the docs which I referred. (Read an item by ID : Item.read) https://docs.microsoft.com/en-us/azure/cosmos-db/sql-api-nodejs-samples

