@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
25 lines (21 loc) • 814 B
text/typescript
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { MongoDBCopies } from './MongoDB/MongoDBCopies';
/**
* Represents the specification of read model copies to produce for a projection.
*/
export class ProjectionCopies {
/**
* Initialises a new instance of the {@link ProjectionCopies} class.
* @param {MongoDBCopies} mongoDB - The specification of MongoDB read model copies.
*/
constructor(
readonly mongoDB: MongoDBCopies,
) {}
/**
* Gets the default {@link ProjectionCopies} specification, where no read model copies will be produced.
*/
static get default(): ProjectionCopies {
return new ProjectionCopies(MongoDBCopies.default);
}
}