0.0.3 • Published 4 years ago

seth-odm v0.0.3

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
4 years ago

SethDB ODM

Mapper

  • mapping class entity to Document
    @Entity("users")
    class User {
        @Id() id?: string;
        @Property() name: string;
    }
    
    const user = new User();
    user.name = "test";


    const mapper = new Mapper();
    const plainUser = mapper.toDocument(user).toObject();
    /* { name: "test" } */

Roadmap

Annotations

  • @Entity - done
  • @Property - done
  • @Relation - done
  • @Embedded - done
  • @Indexes
  • @Validation
  • @Id - done
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago