Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documents with fields with strings array leads to changes type: SS->LIST #66

Open
komanton opened this issue Mar 3, 2020 · 0 comments

Comments

@komanton
Copy link

komanton commented Mar 3, 2020

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. View document
    { "username": "test@mail.com", "grps": [ "group-id-1", "group-id-2" ] }
  2. Press Save button
  3. Get document with dynamoose where scheme looks like this:
const schema = new Schema({
  username: {
    type: String,
    hashKey: true
  },
 grps: {
    type: [String],
    default: []
  }
});

export default dynamoose.model<SomeInterfaceSchema, unknown>("Name", schema );

Dynamoose will fail because type of "grps" is changed from SS to LIST

Expected: step 2 should not change the type of "grps" to LIST

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser chrome
  • Version [e.g. 22]

Additional context
Add any other context about the problem here

@komanton komanton changed the title Update documnst with massives leads to changes type: SS->LIST Update documents with fields with strings array leads to changes type: SS->LIST Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant