You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
When trying to use filter on nested attributes:
constmyModel=newMyModel();// With any Dynamodels modelconstvalue=awaitmyModel.query().keys({pk: 'something',}).filter(attr('key.#key2').eq('something-to-match')).execAll();
Imho, we should just be able to type 'key1.key2.key3' and Dynamodels should parse this and understand that this is a nested attribute case and correctly fills the ExpressionAttributeNames.
The text was updated successfully, but these errors were encountered:
Affected version : v2.0.1
Current behavior:
When trying to use filter on nested attributes:
We get the following error:
ValidationException: ExpressionAttributeNames contains invalid key: Syntax error; key: "#key1.#key2f1a48369fb1b4fbf98c2ec8893a95063"
When it should just returns the filtered list.
The issues seems to be related to ExpressionAttributeNames mapping that is like this :
When it should be like that:
Imho, we should just be able to type 'key1.key2.key3' and Dynamodels should parse this and understand that this is a nested attribute case and correctly fills the ExpressionAttributeNames.
The text was updated successfully, but these errors were encountered: