nestjs-express-cassandra
nestjs-express-cassandra copied to clipboard
Model Assocations Example?
Are there any examples of how to use the ORM for model assocations?
For example with TypeORM there's a decorator:
@OneToMany(type => Photo, photo => photo.user)
photos: Photo[];
How might I do that with this package?
Thanks!
You can use UserDenifeType. You have to provide UDT definition in connection object. Here is an example. Currently this module does not support model assocations like TypeOrm.