Skip to content

Version 8.0.0-alpha.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@notheotherben notheotherben released this 13 Jan 18:28
· 32 commits to main since this release

This release adds support for renaming DB fields using the new @Rename decorator as requested in #108.

It can be used as follows:

import * from "iridium"

@Collection("houses")
export class House extends Instance<HouseDocument, House> implements HouseDocument {
  @ObjectID
  public _id: string;

  @Property(String)
  @Rename("house_name")
  public houseName: string;
}