How to use the @nestjs/azure-database.EntityRowKey function in @nestjs/azure-database

To help you get started, we’ve selected a few @nestjs/azure-database examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nitro-stack / nitro-cats / server / src / cat / cat.entity.ts View on Github external
import {
  EntityPartitionKey,
  EntityRowKey,
  EntityString,
  EntityInt32,
  EntityDateTime,
} from '@nestjs/azure-database';

@EntityPartitionKey('cats')
@EntityRowKey('id')
export class Cat {
  @EntityString() url: string;
  @EntityInt32() rating: number;
  @EntityDateTime() createdAt: Date;

  constructor(cat?: Partial) {
    Object.assign(this, cat);
  }
}

@nestjs/azure-database

The Azure Table Storage module for Nest framework (node.js)

MIT
Latest version published 7 months ago

Package Health Score

74 / 100
Full package analysis

Similar packages