@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
22 lines • 1.14 kB
TypeScript
import { CollectionName } from './CollectionName';
import { PropertyConversion } from './PropertyConversion';
/**
* Represents the specification of MongoDB read model copies to produce for a projection.
*/
export declare class MongoDBCopies {
readonly shouldCopyToMongoDB: boolean;
readonly collectionName: CollectionName;
readonly conversions: PropertyConversion[];
/**
* Initialises a new instance of the {@link MongoDBCopies} class.
* @param {boolean} shouldCopyToMongoDB - A value indicating whether or not to produce read model copies to a MongoDB collection.
* @param {CollectionName} collectionName - The name of the collection to copy read models to.
* @param {PropertyConversion[]} conversions - The conversions to apply when copying read models.
*/
constructor(shouldCopyToMongoDB: boolean, collectionName: CollectionName, conversions: PropertyConversion[]);
/**
* Gets the default {@link MongoDBCopies} specification, where no read model copies will be produced in MongoDB.
*/
static get default(): MongoDBCopies;
}
//# sourceMappingURL=MongoDBCopies.d.ts.map