Open emindeniz99 opened 3 years ago
Hello,
{ "name": "Emin", "myMap": { "/hello": "hi", "asd": "123" } }
I want to specify ProjectionExpression to get only "/hello": "hi"
"/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.
ProjectionExpression: "myMap./hello",
error: ProjectionExpression: Syntax error; token: "\", near: ".\/"
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()```
Hello,
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: