(
domainId: string, docType: K, query?: Filter<DocType[K]>, projection?: Projection<DocType[K]>,
)
| 139 | } |
| 140 | |
| 141 | export function getMulti<K extends keyof DocType>( |
| 142 | domainId: string, docType: K, query?: Filter<DocType[K]>, projection?: Projection<DocType[K]>, |
| 143 | ): FindCursor<DocType[K]> { |
| 144 | let cursor = coll.find({ docType, domainId, ...query }); |
| 145 | if (projection) cursor = cursor.project(buildProjection(projection)); |
| 146 | return cursor; |
| 147 | } |
| 148 | |
| 149 | export async function inc<K extends keyof DocType>( |
| 150 | domainId: string, docType: K, docId: DocType[K]['docId'], |
nothing calls this directly
no test coverage detected