我想使用 PartiQL 从 AWS DynamoDB 获取结果。我能够获取普通物品的数据。我正在使用此代码-
const statement = `SELECT * FROM "dbname.int" WHERE contains("item3", '{"accountName": 'val2'}')`;
const results = await db.executeStatement({Statement: statement}).promise();
DynamoDB 结构 - item1(String type) -> 'some value' item1(Number type) -> 0 item3(MAP type) -> '{"accountName": "Dummy Name", "city": "Delhi", "info ":{"info1": "信息值"}'
我正在寻找包含“虚拟”文本的 accountName 值。