Hello,
{
"name": "Emin",
"myMap": {
"/hello": "hi",
"asd": "123"
}
}
I want to specify ProjectionExpression to get only "/hello": "hi"
But to specify nested attributes, "."(dot) usage is necessary.
ProjectionExpression: "myMap./hello",
It is not work.
I tried to use escape character "" in front of "/", it gives error.
error:
ProjectionExpression: Syntax error; token: "\", near: ".\/"
code:
const params = {
TableName: config.aws_table_name,
Key: {
name: "Emin",
},
ProjectionExpression: "redirects./hello",
}
return await docClient.get(params).promise()```