nestjs-express-cassandra
v0.0.6
Published
Express-cassandra module for Nest framework
Downloads
471
Maintainers
Readme
Description
express-cassandra module for Nest.
Installation
$ npm i --save nestjs-express-cassandra
Usage
@Entity<PostEntity>({
key: ['postId'],
})
export class PostEntity {
@Column({
type: 'int',
})
postId!: number;
@UUIDColumn()
userId?: string;
@TimeUUIDColumn()
dateID?: string;
@VersionColumn()
version?: string;
@Column({
type: 'text',
rule: { required: true },
})
title!: string;
@Column({
type: 'text',
})
content?: string;
@CreateDateColumn()
createdAt?: string;
@UpdateDateColumn()
updatedAt?: string;
}
Browse sample folder for more examples.