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
Hi, is there a way to filter the data that is being copied so I can choose to not copy the records I don't need based on some condition?
Let's say I want to only copy records from one table to another where the CustomerID is the one I specify instead of coping all records.
If I try to do that in the transform function, I get a MultipleValidationErrors error.
It would be helpful if I could define filter expressions to be used with options.source.dynamoClient.scan in your scan method.
The text was updated successfully, but these errors were encountered:
A workaround I came up with is to return null in the transform function for the items you don't want copied. Then go to your node_modules/copy-dynamodb-table/index.js file and add this line of code to the mapItems functions:
Hi, is there a way to filter the data that is being copied so I can choose to not copy the records I don't need based on some condition?
Let's say I want to only copy records from one table to another where the CustomerID is the one I specify instead of coping all records.
If I try to do that in the transform function, I get a
MultipleValidationErrors
error.It would be helpful if I could define filter expressions to be used with
options.source.dynamoClient.scan
in yourscan
method.The text was updated successfully, but these errors were encountered: