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
I am trying to migrate my application from v1 to v3, I know that now we have tables that need to be created along with models. I am creating models and table like this:
exports.PackageModel = dynamoose.model(PackageTableName, Package);
const PackageTable = new dynamoose.Table(PackageTableName, [this.PackageModel]);
But when I add Prefix and Suffix I get the following error:
{"name":"InvalidParameter","message":"Table \"dynamopm-c-uw2.packages\" not found. Please register the table with dynamoose before using it in transactions."}
when running the query.
I have tried both the ways of providing the prefix, that is with table config as well as the dynamoose.Table.defaults.set.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to migrate my application from v1 to v3, I know that now we have tables that need to be created along with models. I am creating models and table like this:
But when I add Prefix and Suffix I get the following error:
when running the query.
I have tried both the ways of providing the prefix, that is with table config as well as the dynamoose.Table.defaults.set.
Any help?
Beta Was this translation helpful? Give feedback.
All reactions