ottoman
Version:
Ottoman Couchbase ODM
17 lines (16 loc) • 546 B
TypeScript
import { TransactionAttemptContext } from 'couchbase';
export type FieldsBaseType = string | string[];
export type PopulateSelectBaseType = {
select?: FieldsBaseType;
populate?: PopulateFieldsType;
};
export type PopulateSelectType = {
[K: string]: FieldsBaseType | PopulateSelectBaseType;
};
export type PopulateFieldsType = FieldsBaseType | PopulateSelectType;
export type PopulateOptionsType = {
deep?: number;
lean?: boolean;
enforceRefCheck?: boolean | 'throw';
transactionContext?: TransactionAttemptContext;
};