-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
We have an example like
const expression = 'SET $(elevation) = 46.6'
const { err, data } = await table.update('oregon', 'salem', expression)Our users are going to do something like
const expression = 'SET $(elevation) = ' + newValue
const { err, data } = await table.update('oregon', 'salem', expression)^ This is a DynamoDB injection waiting to happen.
We should have something like
const expression = table.expr`SET $(elevation) = ${newValue}`
const { err, data } = await table.update('oregon', 'salem', expression)With a function that does escaping for whatever
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request