We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 729dc1f commit 698426fCopy full SHA for 698426f
packages/mongodb-constants/src/pipeline.ts
@@ -3,7 +3,11 @@
3
import type { Document } from 'mongodb';
4
5
/** 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**/
+ * 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
+ * */
11
export const isPipelineSearchQueryable = (pipeline: Document[]): boolean => {
12
for (const stage of pipeline) {
13
const stageKey = Object.keys(stage)[0];
0 commit comments