Skip to content

Commit 698426f

Browse files
comment method
1 parent 729dc1f commit 698426f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/mongodb-constants/src/pipeline.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import type { Document } from 'mongodb';
44

55
/** A view pipeline is searchQueryable (ie: a search index can be created on view) if
6-
* a pipeline consists of only addFields, set and match with expr stages**/
6+
* a pipeline consists of only addFields, set and match with expr stages*
7+
*
8+
* @param pipeline the view pipeline
9+
* @returns whether pipeline is search queryable
10+
* */
711
export const isPipelineSearchQueryable = (pipeline: Document[]): boolean => {
812
for (const stage of pipeline) {
913
const stageKey = Object.keys(stage)[0];

0 commit comments

Comments
 (0)