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
Would User.create(user, {overwrite : false}, cb) be enough to prevent duplicate id, cognitoId and email? or do I need to explicitly construct an array of conditional expressions to cover all 3? Do perhaps I could redefine the model in a way that overwrite works?
The text was updated successfully, but these errors were encountered:
Hello,
I'd like to know if it's possible to use the overwrite flag with constraints on the hash key and 2 index attributes.
consider my model:
Would
User.create(user, {overwrite : false}, cb)
be enough to prevent duplicate id, cognitoId and email? or do I need to explicitly construct an array of conditional expressions to cover all 3? Do perhaps I could redefine the model in a way thatoverwrite
works?The text was updated successfully, but these errors were encountered: