Function: Shard()
Shard(
config?): (target) =>void
Defined in: service-core/src/decorators/ModelDecorators.ts:181
Indicates that the class describes an entity that will be persisted in a sharded database collection.
Note: Only supported by MongoDB.
Parameters
config?
any = ...
The sharding configuration to pass to the database server. Default value is { key: { uid: 1 }, unique: false, options: {} }.
Returns
(target) => void