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

the documentation is outdated #296

Open
oubaydos opened this issue Oct 1, 2024 · 0 comments
Open

the documentation is outdated #296

oubaydos opened this issue Oct 1, 2024 · 0 comments

Comments

@oubaydos
Copy link

oubaydos commented Oct 1, 2024

For example:

export class Album extends Model<IAlbum> {
  // DynamoDB table name
  protected tableName = 'my_albums';
  // The keys of the table. Here it is a composite key (artist,album)
  protected hashkey = 'artist';
  protected rangekey = 'album';

  // Optionally override constructor
  constructor(item?: IAlbum) {
    super(item);
  }
}

the hashkey is no longer called that, instead it is called pk (same for rangeKet -> sk)

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