@prisma/orm-family-mongo 0.16.0-dev.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +27 -0
- package/dist/authoring-entity-types-BGtkMyoN-D32kzx28.mjs +176 -0
- package/dist/authoring-entity-types-BGtkMyoN-D32kzx28.mjs.map +1 -0
- package/dist/canonicalization-hooks-DF3Z6sjO.mjs +22 -0
- package/dist/canonicalization-hooks-DF3Z6sjO.mjs.map +1 -0
- package/dist/codec.d.mts +2 -0
- package/dist/codec.mjs +2 -0
- package/dist/config-types-CFDf9ivE.mjs +37 -0
- package/dist/config-types-CFDf9ivE.mjs.map +1 -0
- package/dist/config-types-CQOf5N7R.d.mts +12 -0
- package/dist/config-types-CQOf5N7R.d.mts.map +1 -0
- package/dist/contract-builder-BFq0gOMV.mjs +634 -0
- package/dist/contract-builder-BFq0gOMV.mjs.map +1 -0
- package/dist/contract-builder-DB8nguDE.d.mts +445 -0
- package/dist/contract-builder-DB8nguDE.d.mts.map +1 -0
- package/dist/contract-errors-BCN6RVI5-kMurtAbI.mjs +9 -0
- package/dist/contract-errors-BCN6RVI5-kMurtAbI.mjs.map +1 -0
- package/dist/contract-psl.d.mts +45 -0
- package/dist/contract-psl.d.mts.map +1 -0
- package/dist/contract-psl.mjs +2 -0
- package/dist/contract-psl__provider.d.mts +15 -0
- package/dist/contract-psl__provider.d.mts.map +1 -0
- package/dist/contract-psl__provider.mjs +82 -0
- package/dist/contract-psl__provider.mjs.map +1 -0
- package/dist/contract-ts.d.mts +3 -0
- package/dist/contract-ts.mjs +3 -0
- package/dist/contract-ts__config-types.d.mts +2 -0
- package/dist/contract-ts__config-types.mjs +2 -0
- package/dist/contract-ts__contract-builder.d.mts +2 -0
- package/dist/contract-ts__contract-builder.mjs +2 -0
- package/dist/contract.d.mts +3 -0
- package/dist/contract.mjs +3 -0
- package/dist/contract__canonicalization-hooks.d.mts +9 -0
- package/dist/contract__canonicalization-hooks.d.mts.map +1 -0
- package/dist/contract__canonicalization-hooks.mjs +2 -0
- package/dist/contract__entity-kinds.d.mts +17 -0
- package/dist/contract__entity-kinds.d.mts.map +1 -0
- package/dist/contract__entity-kinds.mjs +2 -0
- package/dist/control-C7-kthr1.d.mts +193 -0
- package/dist/control-C7-kthr1.d.mts.map +1 -0
- package/dist/control-CClR5JMr.mjs +127 -0
- package/dist/control-CClR5JMr.mjs.map +1 -0
- package/dist/control-CFr3tYsg.mjs +398 -0
- package/dist/control-CFr3tYsg.mjs.map +1 -0
- package/dist/control-Cj81sPbj.d.mts +101 -0
- package/dist/control-Cj81sPbj.d.mts.map +1 -0
- package/dist/control-adapter-Db5pT77b.d.mts +83 -0
- package/dist/control-adapter-Db5pT77b.d.mts.map +1 -0
- package/dist/dist-C7Ykq48Q.mjs +19 -0
- package/dist/dist-C7Ykq48Q.mjs.map +1 -0
- package/dist/dist-Czwqx_i3.mjs +58 -0
- package/dist/dist-Czwqx_i3.mjs.map +1 -0
- package/dist/dist-DHrEJnhK.mjs +236 -0
- package/dist/dist-DHrEJnhK.mjs.map +1 -0
- package/dist/dist-Dyp05u64.mjs +1546 -0
- package/dist/dist-Dyp05u64.mjs.map +1 -0
- package/dist/emitter.d.mts +22 -0
- package/dist/emitter.d.mts.map +1 -0
- package/dist/emitter.mjs +2 -0
- package/dist/entity-kinds-B4KNTF8z-DPIuUuuB.mjs +603 -0
- package/dist/entity-kinds-B4KNTF8z-DPIuUuuB.mjs.map +1 -0
- package/dist/execution-CKnUiOfm.d.mts +48 -0
- package/dist/execution-CKnUiOfm.d.mts.map +1 -0
- package/dist/execution-D5XyZ5XS.mjs +1269 -0
- package/dist/execution-D5XyZ5XS.mjs.map +1 -0
- package/dist/exports-Bx-hlnZ3.mjs +209 -0
- package/dist/exports-Bx-hlnZ3.mjs.map +1 -0
- package/dist/exports-CJMh0VTU.mjs +156 -0
- package/dist/exports-CJMh0VTU.mjs.map +1 -0
- package/dist/family.d.mts +10 -0
- package/dist/family.mjs +9 -0
- package/dist/family__control-adapter.d.mts +2 -0
- package/dist/family__control-adapter.mjs +1 -0
- package/dist/family__control.d.mts +2 -0
- package/dist/family__control.mjs +3 -0
- package/dist/family__ir.d.mts +3 -0
- package/dist/family__ir.mjs +4 -0
- package/dist/family__migration.d.mts +2 -0
- package/dist/family__migration.mjs +2 -0
- package/dist/family__pack.d.mts +2 -0
- package/dist/family__pack.mjs +16 -0
- package/dist/family__pack.mjs.map +1 -0
- package/dist/family__runtime.d.mts +3 -0
- package/dist/family__runtime.mjs +2 -0
- package/dist/family__schema-verify.d.mts +2 -0
- package/dist/family__schema-verify.mjs +2 -0
- package/dist/field-accessor-0oUt6RZC-B_Z30uAA.mjs +234 -0
- package/dist/field-accessor-0oUt6RZC-B_Z30uAA.mjs.map +1 -0
- package/dist/field-accessor-DHsAPiW3-BdYCspQC.d.mts +588 -0
- package/dist/field-accessor-DHsAPiW3-BdYCspQC.d.mts.map +1 -0
- package/dist/filter-expressions-Uo8ZdzwB-53qnqceS.mjs +181 -0
- package/dist/filter-expressions-Uo8ZdzwB-53qnqceS.mjs.map +1 -0
- package/dist/index-BR0ue13b.d.mts +136 -0
- package/dist/index-BR0ue13b.d.mts.map +1 -0
- package/dist/index-Cd2zLiU6.d.mts +128 -0
- package/dist/index-Cd2zLiU6.d.mts.map +1 -0
- package/dist/index-DAOkcTCK.d.mts +151 -0
- package/dist/index-DAOkcTCK.d.mts.map +1 -0
- package/dist/index-Dv2PNMiG.d.mts +53 -0
- package/dist/index-Dv2PNMiG.d.mts.map +1 -0
- package/dist/index-DxoO-ywI.d.mts +178 -0
- package/dist/index-DxoO-ywI.d.mts.map +1 -0
- package/dist/index-wKMm41HC.d.mts +30 -0
- package/dist/index-wKMm41HC.d.mts.map +1 -0
- package/dist/interpreter-BxbUTQ3k-ClR98Ned.mjs +1091 -0
- package/dist/interpreter-BxbUTQ3k-ClR98Ned.mjs.map +1 -0
- package/dist/ir-CQrenTYt.d.mts +147 -0
- package/dist/ir-CQrenTYt.d.mts.map +1 -0
- package/dist/ir-Ch2aPr7a.mjs +62 -0
- package/dist/ir-Ch2aPr7a.mjs.map +1 -0
- package/dist/lowering.d.mts +2 -0
- package/dist/lowering.mjs +1 -0
- package/dist/migration-CNDQv5yB.d.mts +50 -0
- package/dist/migration-CNDQv5yB.d.mts.map +1 -0
- package/dist/migration-dcM7u4HG.mjs +52 -0
- package/dist/migration-dcM7u4HG.mjs.map +1 -0
- package/dist/mongo-contract-serializer-Cx7Fae8e-C8ZYPXpc.mjs +119 -0
- package/dist/mongo-contract-serializer-Cx7Fae8e-C8ZYPXpc.mjs.map +1 -0
- package/dist/mongo-contract-view-AnejqfrQ-BaCFT0xm.d.mts +27 -0
- package/dist/mongo-contract-view-AnejqfrQ-BaCFT0xm.d.mts.map +1 -0
- package/dist/mongo-contract-view-rcWzby6f-wRBCUnBt.mjs +17 -0
- package/dist/mongo-contract-view-rcWzby6f-wRBCUnBt.mjs.map +1 -0
- package/dist/mongo-value-set-tNn9-pun-dJYx_rVD.d.mts +536 -0
- package/dist/mongo-value-set-tNn9-pun-dJYx_rVD.d.mts.map +1 -0
- package/dist/mongodb-types-B4HmhF1S.d.mts +2 -0
- package/dist/orm.d.mts +311 -0
- package/dist/orm.d.mts.map +1 -0
- package/dist/orm.mjs +664 -0
- package/dist/orm.mjs.map +1 -0
- package/dist/pack-D9aLY50F.d.mts +44 -0
- package/dist/pack-D9aLY50F.d.mts.map +1 -0
- package/dist/query-ast.d.mts +5 -0
- package/dist/query-ast.mjs +4 -0
- package/dist/query-ast__control.d.mts +4 -0
- package/dist/query-ast__control.mjs +3 -0
- package/dist/query-ast__execution.d.mts +3 -0
- package/dist/query-ast__execution.mjs +3 -0
- package/dist/query-builder.d.mts +836 -0
- package/dist/query-builder.d.mts.map +1 -0
- package/dist/query-builder.mjs +3 -0
- package/dist/query-builder__contract-free.d.mts +83 -0
- package/dist/query-builder__contract-free.d.mts.map +1 -0
- package/dist/query-builder__contract-free.mjs +107 -0
- package/dist/query-builder__contract-free.mjs.map +1 -0
- package/dist/query-plan-C0-Yu8hf-DdilEdW6.d.mts +822 -0
- package/dist/query-plan-C0-Yu8hf-DdilEdW6.d.mts.map +1 -0
- package/dist/runtime-DPkRW4iu.d.mts +1 -0
- package/dist/runtime.d.mts +286 -0
- package/dist/runtime.d.mts.map +1 -0
- package/dist/runtime.mjs +532 -0
- package/dist/runtime.mjs.map +1 -0
- package/dist/schema-ir.d.mts +2 -0
- package/dist/schema-ir.mjs +2 -0
- package/dist/schema-verify-DJGr28XW.d.mts +23 -0
- package/dist/schema-verify-DJGr28XW.d.mts.map +1 -0
- package/dist/value.d.mts +2 -0
- package/dist/value.mjs +2 -0
- package/dist/value__mongodb-types.d.mts +2 -0
- package/dist/value__mongodb-types.mjs +1 -0
- package/dist/verify-mongo-schema-De0FG2Rm-CCzwnNPY.mjs +447 -0
- package/dist/verify-mongo-schema-De0FG2Rm-CCzwnNPY.mjs.map +1 -0
- package/dist/wire.d.mts +3 -0
- package/dist/wire.mjs +190 -0
- package/dist/wire.mjs.map +1 -0
- package/package.json +89 -0
package/dist/orm.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orm.mjs","names":["#contract","#modelName","#executor","#collectionName","#state","#cloneWithVariant","#clone","#compileWhereObject","#execute","#rejectIncludes","#injectDiscriminator","#stripUndefined","#toDocument","#drainPlan","#insertOneResultShape","#insertManyResultShape","#requireFilters","#rejectWindowing","#mergeFilters","#resolveUpdateDoc","#modelResultShape","#readMatchingIds","#wrapFieldOpValue","#toSetFields","#compile","#planMeta","#wrapCommand","#modelFields","#idFieldShape","#wrapFieldValue","#wrapValueObject","#toUpdateDocument","#wrapDotPathValue","#variantName"],"sources":["../../../../2-mongo-family/5-query-builders/orm/dist/index.mjs"],"sourcesContent":["import { domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace } from \"@internal/contract/types\";\nimport { AsyncIterableResult } from \"@internal/framework-components/runtime\";\nimport { AggregateCommand, DeleteManyCommand, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, InsertOneCommand, MongoAndExpr, MongoFieldFilter, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoProjectStage, MongoSkipStage, MongoSortStage, MongoUnwindStage, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, RawUpdateManyCommand, RawUpdateOneCommand, UpdateManyCommand, freezeMongoResultShape, isMongoFilterExpr } from \"@internal/mongo-query-ast/execution\";\nimport { contractFieldToMongoFieldShape, contractModelToMongoResultShape } from \"@internal/mongo-query-builder\";\nimport { MongoParamRef } from \"@internal/mongo-value\";\nimport { blindCast, castAs } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/collection-state.ts\nfunction emptyCollectionState() {\n\treturn {\n\t\tfilters: [],\n\t\tincludes: [],\n\t\torderBy: void 0,\n\t\tselectedFields: void 0,\n\t\tlimit: void 0,\n\t\toffset: void 0\n\t};\n}\n//#endregion\n//#region src/compile.ts\nfunction compileIncludes(includes) {\n\tconst stages = [];\n\tfor (const inc of includes) {\n\t\tstages.push(new MongoLookupStage({\n\t\t\tfrom: inc.from,\n\t\t\tlocalField: inc.localField,\n\t\t\tforeignField: inc.foreignField,\n\t\t\tas: inc.relationName\n\t\t}));\n\t\tif (inc.cardinality === \"N:1\" || inc.cardinality === \"1:1\") stages.push(new MongoUnwindStage(`$${inc.relationName}`, true));\n\t}\n\treturn stages;\n}\nfunction compileMongoQuery(collection, state, storageHash, model) {\n\tconst stages = [];\n\tconst singleFilter = state.filters.length === 1 ? state.filters[0] : void 0;\n\tif (singleFilter) stages.push(new MongoMatchStage(singleFilter));\n\telse if (state.filters.length > 1) stages.push(new MongoMatchStage(MongoAndExpr.of([...state.filters])));\n\tif (state.includes.length > 0) stages.push(...compileIncludes(state.includes));\n\tif (state.orderBy) stages.push(new MongoSortStage(state.orderBy));\n\tif (state.offset !== void 0) stages.push(new MongoSkipStage(state.offset));\n\tif (state.limit !== void 0) stages.push(new MongoLimitStage(state.limit));\n\tif (state.selectedFields && state.selectedFields.length > 0) {\n\t\tconst projection = {};\n\t\tfor (const field of state.selectedFields) projection[field] = 1;\n\t\tif (!Object.hasOwn(projection, \"_id\")) projection[\"_id\"] = 0;\n\t\tstages.push(new MongoProjectStage(projection));\n\t}\n\tconst meta = {\n\t\ttarget: \"mongo\",\n\t\tstorageHash,\n\t\tlane: \"mongo-orm\"\n\t};\n\tconst command = new AggregateCommand(collection, stages);\n\tconst selection = state.selectedFields !== void 0 && state.selectedFields.length > 0 ? state.selectedFields : void 0;\n\tconst includeRelationNames = state.includes.length > 0 ? state.includes.map((inc) => inc.relationName) : void 0;\n\treturn {\n\t\tcollection,\n\t\tcommand,\n\t\tmeta,\n\t\tresultShape: contractModelToMongoResultShape(model, {\n\t\t\t...ifDefined(\"selection\", selection),\n\t\t\t...ifDefined(\"includeRelationNames\", includeRelationNames)\n\t\t})\n\t};\n}\n//#endregion\n//#region src/field-accessor.ts\nfunction createFieldExpression(fieldPath) {\n\treturn {\n\t\tset(value) {\n\t\t\treturn {\n\t\t\t\toperator: \"$set\",\n\t\t\t\tfield: fieldPath,\n\t\t\t\tvalue: new MongoParamRef(value)\n\t\t\t};\n\t\t},\n\t\tunset() {\n\t\t\treturn {\n\t\t\t\toperator: \"$unset\",\n\t\t\t\tfield: fieldPath,\n\t\t\t\tvalue: new MongoParamRef(\"\")\n\t\t\t};\n\t\t},\n\t\tinc(value) {\n\t\t\treturn {\n\t\t\t\toperator: \"$inc\",\n\t\t\t\tfield: fieldPath,\n\t\t\t\tvalue: new MongoParamRef(value)\n\t\t\t};\n\t\t},\n\t\tmul(value) {\n\t\t\treturn {\n\t\t\t\toperator: \"$mul\",\n\t\t\t\tfield: fieldPath,\n\t\t\t\tvalue: new MongoParamRef(value)\n\t\t\t};\n\t\t},\n\t\tpush(value) {\n\t\t\treturn {\n\t\t\t\toperator: \"$push\",\n\t\t\t\tfield: fieldPath,\n\t\t\t\tvalue: new MongoParamRef(value)\n\t\t\t};\n\t\t},\n\t\tpull(match) {\n\t\t\treturn {\n\t\t\t\toperator: \"$pull\",\n\t\t\t\tfield: fieldPath,\n\t\t\t\tvalue: new MongoParamRef(match)\n\t\t\t};\n\t\t},\n\t\taddToSet(value) {\n\t\t\treturn {\n\t\t\t\toperator: \"$addToSet\",\n\t\t\t\tfield: fieldPath,\n\t\t\t\tvalue: new MongoParamRef(value)\n\t\t\t};\n\t\t},\n\t\tpop(end) {\n\t\t\treturn {\n\t\t\t\toperator: \"$pop\",\n\t\t\t\tfield: fieldPath,\n\t\t\t\tvalue: new MongoParamRef(end)\n\t\t\t};\n\t\t}\n\t};\n}\nfunction createFieldAccessor() {\n\treturn new Proxy((() => {}), {\n\t\tget(_target, prop) {\n\t\t\treturn createFieldExpression(prop);\n\t\t},\n\t\tapply(_target, _thisArg, args) {\n\t\t\treturn createFieldExpression(args[0]);\n\t\t}\n\t});\n}\nfunction compileFieldOperations(ops, wrapValue) {\n\tconst grouped = {};\n\tfor (const op of ops) {\n\t\tlet group = grouped[op.operator];\n\t\tif (!group) {\n\t\t\tgroup = {};\n\t\t\tgrouped[op.operator] = group;\n\t\t}\n\t\tgroup[op.field] = wrapValue(op.field, op.value, op.operator);\n\t}\n\treturn grouped;\n}\n//#endregion\n//#region src/orm-errors.ts\nfunction ormError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/collection.ts\nfunction resolveCollectionName(model, modelName) {\n\treturn model.storage.collection ?? modelName;\n}\nfunction isUnknownRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nvar MongoCollectionImpl = class MongoCollectionImpl {\n\t#contract;\n\t#modelName;\n\t#executor;\n\t#collectionName;\n\t#state;\n\t#variantName;\n\tconstructor(contract, modelName, executor) {\n\t\tthis.#contract = contract;\n\t\tthis.#modelName = modelName;\n\t\tthis.#executor = executor;\n\t\tconst model = blindCast(domainModelsAtDefaultNamespace(contract.domain)[modelName]);\n\t\tthis.#collectionName = resolveCollectionName(model, modelName);\n\t\tthis.#state = emptyCollectionState();\n\t}\n\tvariant(variantName) {\n\t\tconst model = blindCast(domainModelsAtDefaultNamespace(this.#contract.domain)[this.#modelName]);\n\t\tif (!model?.discriminator || !model.variants) return blindCast(this);\n\t\tconst variantEntry = model.variants[variantName];\n\t\tif (!variantEntry) return blindCast(this);\n\t\tconst filter = MongoFieldFilter.eq(model.discriminator.field, new MongoParamRef(variantEntry.value));\n\t\treturn this.#cloneWithVariant({ filters: [...this.#state.filters, filter] }, variantName);\n\t}\n\twhere(filter) {\n\t\tif (isMongoFilterExpr(filter)) return this.#clone({ filters: [...this.#state.filters, filter] });\n\t\tconst compiled = this.#compileWhereObject(blindCast(filter));\n\t\treturn this.#clone({ filters: [...this.#state.filters, ...compiled] });\n\t}\n\tselect(...fields) {\n\t\treturn this.#clone({ selectedFields: [...this.#state.selectedFields ?? [], ...fields] });\n\t}\n\tinclude(relationName) {\n\t\tconst relation = blindCast(domainModelsAtDefaultNamespace(this.#contract.domain)[this.#modelName]).relations?.[relationName];\n\t\tif (!relation) throw ormError(\"ORM.RELATION_UNKNOWN\", `Unknown relation \"${relationName}\" on model \"${this.#modelName}\"`, { meta: {\n\t\t\tmodel: this.#modelName,\n\t\t\trelation: relationName\n\t\t} });\n\t\tif (!(\"on\" in relation)) throw ormError(\"ORM.INCLUDE_UNSUPPORTED\", `Relation \"${relationName}\" is an embed relation — only reference relations can be included`, { meta: {\n\t\t\tmodel: this.#modelName,\n\t\t\trelation: relationName\n\t\t} });\n\t\tconst ref = relation;\n\t\tconst localField = ref.on.localFields[0];\n\t\tconst foreignField = ref.on.targetFields[0];\n\t\tif (!localField || !foreignField || ref.on.localFields.length !== 1 || ref.on.targetFields.length !== 1) throw ormError(\"ORM.INCLUDE_UNSUPPORTED\", `Compound references are not yet supported: relation \"${relationName}\"`, { meta: {\n\t\t\tmodel: this.#modelName,\n\t\t\trelation: relationName\n\t\t} });\n\t\tconst targetModelName = ref.to.model;\n\t\tconst targetModel = castAs(domainModelsAtDefaultNamespace(this.#contract.domain)[targetModelName]);\n\t\tif (!targetModel) throw new InternalError(`Target model \"${targetModelName}\" not found for relation \"${relationName}\"`);\n\t\tconst includeExpr = {\n\t\t\trelationName,\n\t\t\tfrom: resolveCollectionName(targetModel, targetModelName),\n\t\t\tlocalField,\n\t\t\tforeignField,\n\t\t\tcardinality: ref.cardinality\n\t\t};\n\t\treturn blindCast(this.#clone({ includes: [...this.#state.includes, includeExpr] }));\n\t}\n\torderBy(spec) {\n\t\tconst merged = {\n\t\t\t...this.#state.orderBy,\n\t\t\t...spec\n\t\t};\n\t\treturn this.#clone({ orderBy: merged });\n\t}\n\ttake(n) {\n\t\treturn this.#clone({ limit: n });\n\t}\n\tskip(n) {\n\t\treturn this.#clone({ offset: n });\n\t}\n\tall() {\n\t\treturn this.#execute();\n\t}\n\tasync first() {\n\t\tconst result = this.#clone({ limit: 1 }).#execute();\n\t\tfor await (const row of result) return row;\n\t\treturn null;\n\t}\n\tasync create(data) {\n\t\tthis.#rejectIncludes(\"create\");\n\t\tconst normalized = this.#injectDiscriminator(this.#stripUndefined(blindCast(data)));\n\t\tconst document = this.#toDocument(normalized);\n\t\tconst command = new InsertOneCommand(this.#collectionName, document);\n\t\tconst insertedId = blindCast((await this.#drainPlan(command, this.#insertOneResultShape()))[0]).insertedId;\n\t\treturn blindCast({\n\t\t\t_id: insertedId,\n\t\t\t...normalized\n\t\t});\n\t}\n\tcreateAll(data) {\n\t\tthis.#rejectIncludes(\"createAll\");\n\t\tconst self = this;\n\t\tasync function* gen() {\n\t\t\tconst normalizedRows = data.map((d) => self.#injectDiscriminator(self.#stripUndefined(blindCast(d))));\n\t\t\tconst documents = normalizedRows.map((d) => self.#toDocument(d));\n\t\t\tconst command = new InsertManyCommand(self.#collectionName, documents);\n\t\t\tconst insertedIds = blindCast((await self.#drainPlan(command, self.#insertManyResultShape()))[0]).insertedIds;\n\t\t\tfor (let i = 0; i < normalizedRows.length; i++) yield blindCast({\n\t\t\t\t_id: insertedIds[i],\n\t\t\t\t...normalizedRows[i]\n\t\t\t});\n\t\t}\n\t\treturn new AsyncIterableResult(gen());\n\t}\n\tasync createAndCount(data) {\n\t\tthis.#rejectIncludes(\"createAndCount\");\n\t\tconst documents = data.map((d) => this.#toDocument(this.#injectDiscriminator(blindCast(d))));\n\t\tconst command = new InsertManyCommand(this.#collectionName, documents);\n\t\treturn blindCast((await this.#drainPlan(command))[0]).insertedCount;\n\t}\n\tasync update(dataOrCallback) {\n\t\tthis.#requireFilters(\"update\");\n\t\tthis.#rejectWindowing(\"update\");\n\t\tthis.#rejectIncludes(\"update\");\n\t\tconst filter = this.#mergeFilters();\n\t\tconst updateDoc = this.#resolveUpdateDoc(dataOrCallback);\n\t\tconst command = new FindOneAndUpdateCommand(this.#collectionName, filter, updateDoc, false);\n\t\tconst result = (await this.#drainPlan(command, this.#modelResultShape()))[0];\n\t\treturn result === void 0 ? null : blindCast(result);\n\t}\n\tupdateAll(dataOrCallback) {\n\t\tthis.#requireFilters(\"updateAll\");\n\t\tthis.#rejectWindowing(\"updateAll\");\n\t\tconst self = this;\n\t\tasync function* gen() {\n\t\t\tconst ids = await self.#readMatchingIds();\n\t\t\tif (ids.length === 0) return;\n\t\t\tconst filter = self.#mergeFilters();\n\t\t\tconst updateDoc = self.#resolveUpdateDoc(dataOrCallback);\n\t\t\tconst command = new UpdateManyCommand(self.#collectionName, filter, updateDoc);\n\t\t\tawait self.#drainPlan(command);\n\t\t\tconst idFilter = MongoFieldFilter.in(\"_id\", ids.map((id) => new MongoParamRef(id)));\n\t\t\tyield* self.#clone({ filters: [idFilter] }).#execute();\n\t\t}\n\t\treturn new AsyncIterableResult(gen());\n\t}\n\tasync updateAndCount(dataOrCallback) {\n\t\tthis.#requireFilters(\"updateAndCount\");\n\t\tthis.#rejectWindowing(\"updateAndCount\");\n\t\tthis.#rejectIncludes(\"updateAndCount\");\n\t\tconst filter = this.#mergeFilters();\n\t\tconst updateDoc = this.#resolveUpdateDoc(dataOrCallback);\n\t\tconst command = new UpdateManyCommand(this.#collectionName, filter, updateDoc);\n\t\treturn blindCast((await this.#drainPlan(command))[0]).modifiedCount;\n\t}\n\tasync delete() {\n\t\tthis.#requireFilters(\"delete\");\n\t\tthis.#rejectWindowing(\"delete\");\n\t\tthis.#rejectIncludes(\"delete\");\n\t\tconst filter = this.#mergeFilters();\n\t\tconst command = new FindOneAndDeleteCommand(this.#collectionName, filter);\n\t\tconst result = (await this.#drainPlan(command, this.#modelResultShape()))[0];\n\t\treturn result === void 0 ? null : blindCast(result);\n\t}\n\tdeleteAll() {\n\t\tthis.#requireFilters(\"deleteAll\");\n\t\tthis.#rejectWindowing(\"deleteAll\");\n\t\tconst self = this;\n\t\tasync function* gen() {\n\t\t\tconst docs = [];\n\t\t\tfor await (const row of self.#execute()) docs.push(row);\n\t\t\tconst filter = self.#mergeFilters();\n\t\t\tconst command = new DeleteManyCommand(self.#collectionName, filter);\n\t\t\tawait self.#drainPlan(command);\n\t\t\tyield* docs;\n\t\t}\n\t\treturn new AsyncIterableResult(gen());\n\t}\n\tasync deleteAndCount() {\n\t\tthis.#requireFilters(\"deleteAndCount\");\n\t\tthis.#rejectWindowing(\"deleteAndCount\");\n\t\tthis.#rejectIncludes(\"deleteAndCount\");\n\t\tconst filter = this.#mergeFilters();\n\t\tconst command = new DeleteManyCommand(this.#collectionName, filter);\n\t\treturn blindCast((await this.#drainPlan(command))[0]).deletedCount;\n\t}\n\tasync upsert(input) {\n\t\tthis.#requireFilters(\"upsert\");\n\t\tthis.#rejectWindowing(\"upsert\");\n\t\tthis.#rejectIncludes(\"upsert\");\n\t\tconst filter = this.#mergeFilters();\n\t\tconst allCreateFields = this.#toDocument(this.#injectDiscriminator(blindCast(input.create)));\n\t\tlet updateDoc;\n\t\tif (typeof input.update === \"function\") {\n\t\t\tconst accessor = createFieldAccessor();\n\t\t\tconst ops = input.update(accessor);\n\t\t\tif (ops.find((op) => op.field === \"_id\")) throw ormError(\"ORM.FIELD_IMMUTABLE\", \"Mutation payloads cannot modify `_id`\", { meta: { field: \"_id\" } });\n\t\t\tconst dotPathOp = ops.find((op) => op.field.includes(\".\"));\n\t\t\tif (dotPathOp) throw ormError(\"ORM.OPERATION_UNSUPPORTED\", `upsert() does not support dot-path field operations (found \"${dotPathOp.field}\"). Dot-path updates conflict with \\$setOnInsert on the insert path, producing incomplete documents. Use top-level field operations instead.`, { meta: {\n\t\t\t\tmethod: \"upsert\",\n\t\t\t\tfield: dotPathOp.field\n\t\t\t} });\n\t\t\tupdateDoc = compileFieldOperations(ops, (field, value, operator) => this.#wrapFieldOpValue(field, value, operator));\n\t\t} else {\n\t\t\tconst setFields = this.#toSetFields(blindCast(input.update));\n\t\t\tupdateDoc = {};\n\t\t\tif (Object.keys(setFields).length > 0) updateDoc[\"$set\"] = setFields;\n\t\t}\n\t\tconst updatedFields = /* @__PURE__ */ new Set();\n\t\tfor (const operatorGroup of Object.values(updateDoc)) for (const fieldPath of Object.keys(operatorGroup)) updatedFields.add(fieldPath.split(\".\")[0] ?? fieldPath);\n\t\tconst insertOnlyFields = {};\n\t\tfor (const [key, value] of Object.entries(allCreateFields)) if (!updatedFields.has(key)) insertOnlyFields[key] = value;\n\t\tif (Object.keys(insertOnlyFields).length > 0) updateDoc[\"$setOnInsert\"] = insertOnlyFields;\n\t\tconst command = new FindOneAndUpdateCommand(this.#collectionName, filter, updateDoc, true);\n\t\treturn blindCast((await this.#drainPlan(command, this.#modelResultShape()))[0]);\n\t}\n\tasync #readMatchingIds() {\n\t\tconst idQuery = this.#clone({\n\t\t\tincludes: [],\n\t\t\tselectedFields: [\"_id\"],\n\t\t\torderBy: void 0,\n\t\t\tlimit: void 0,\n\t\t\toffset: void 0\n\t\t});\n\t\tconst ids = [];\n\t\tconst { resultShape: _rs, ...planWithoutShape } = idQuery.#compile();\n\t\tfor await (const row of this.#executor.execute(planWithoutShape)) {\n\t\t\tconst storageRow = blindCast(row);\n\t\t\tids.push(storageRow[\"_id\"]);\n\t\t}\n\t\treturn ids;\n\t}\n\t#execute() {\n\t\tconst plan = this.#compile();\n\t\treturn this.#executor.execute(plan);\n\t}\n\t#compile() {\n\t\tconst model = blindCast(domainModelsAtDefaultNamespace(this.#contract.domain)[this.#modelName]);\n\t\tif (!model) throw ormError(\"ORM.MODEL_UNKNOWN\", `Unknown model: \"${this.#modelName}\".`, { meta: { model: this.#modelName } });\n\t\treturn compileMongoQuery(this.#collectionName, this.#state, this.#contract.storage.storageHash, model);\n\t}\n\t#wrapCommand(command, resultShape) {\n\t\treturn {\n\t\t\tcollection: this.#collectionName,\n\t\t\tcommand,\n\t\t\tmeta: this.#planMeta(),\n\t\t\t...ifDefined(\"resultShape\", resultShape)\n\t\t};\n\t}\n\tasync #drainPlan(command, resultShape) {\n\t\tconst plan = this.#wrapCommand(command, resultShape);\n\t\tconst result = this.#executor.execute(plan);\n\t\tconst rows = [];\n\t\tfor await (const row of result) rows.push(row);\n\t\treturn rows;\n\t}\n\t#modelFields() {\n\t\treturn blindCast(domainModelsAtDefaultNamespace(this.#contract.domain)[this.#modelName])?.fields ?? {};\n\t}\n\t#idFieldShape() {\n\t\tconst idField = this.#modelFields()[\"_id\"];\n\t\treturn idField ? contractFieldToMongoFieldShape(idField) : Object.freeze({ kind: \"unknown\" });\n\t}\n\t#insertOneResultShape() {\n\t\treturn freezeMongoResultShape({\n\t\t\tkind: \"document\",\n\t\t\tfields: { insertedId: this.#idFieldShape() }\n\t\t});\n\t}\n\t#insertManyResultShape() {\n\t\treturn freezeMongoResultShape({\n\t\t\tkind: \"document\",\n\t\t\tfields: { insertedIds: {\n\t\t\t\tkind: \"array\",\n\t\t\t\tnullable: false,\n\t\t\t\telement: this.#idFieldShape()\n\t\t\t} }\n\t\t});\n\t}\n\t#modelResultShape() {\n\t\tconst model = blindCast(domainModelsAtDefaultNamespace(this.#contract.domain)[this.#modelName]);\n\t\tif (!model) return Object.freeze({ kind: \"unknown\" });\n\t\treturn contractModelToMongoResultShape(model);\n\t}\n\t#compileWhereObject(data) {\n\t\tconst fields = this.#modelFields();\n\t\tconst filters = [];\n\t\tfor (const [key, value] of Object.entries(data)) {\n\t\t\tif (value === void 0) continue;\n\t\t\tconst wrapped = this.#wrapFieldValue(value, fields[key]);\n\t\t\tfilters.push(MongoFieldFilter.eq(key, wrapped));\n\t\t}\n\t\treturn filters;\n\t}\n\t#wrapFieldValue(value, field) {\n\t\tif (field === void 0) return new MongoParamRef(value);\n\t\tif (field.type.kind === \"scalar\") return new MongoParamRef(value, { codecId: field.type.codecId });\n\t\tif (field.type.kind === \"valueObject\") {\n\t\t\tconst voName = field.type.name;\n\t\t\tconst voDef = domainValueObjectsAtDefaultNamespace(this.#contract.domain)?.[voName];\n\t\t\tif (!voDef || value === null) return new MongoParamRef(value);\n\t\t\tif (field.many && Array.isArray(value)) return value.map((item) => this.#wrapValueObject(blindCast(item), voDef));\n\t\t\treturn this.#wrapValueObject(blindCast(value), voDef);\n\t\t}\n\t\treturn new MongoParamRef(value);\n\t}\n\t#wrapValueObject(data, voDef) {\n\t\tconst doc = {};\n\t\tfor (const [key, value] of Object.entries(data)) {\n\t\t\tif (value === void 0) continue;\n\t\t\tconst fieldDef = voDef.fields[key];\n\t\t\tdoc[key] = this.#wrapFieldValue(value, fieldDef);\n\t\t}\n\t\treturn doc;\n\t}\n\t#toDocument(data) {\n\t\tconst fields = this.#modelFields();\n\t\tconst doc = {};\n\t\tfor (const [key, value] of Object.entries(data)) if (value !== void 0) doc[key] = this.#wrapFieldValue(value, fields[key]);\n\t\treturn doc;\n\t}\n\t#toSetFields(data) {\n\t\tconst fields = this.#modelFields();\n\t\tconst result = {};\n\t\tfor (const [key, value] of Object.entries(data)) {\n\t\t\tif (key === \"_id\" && value !== void 0) throw ormError(\"ORM.FIELD_IMMUTABLE\", \"Mutation payloads cannot modify `_id`\", { meta: { field: \"_id\" } });\n\t\t\tif (value !== void 0) result[key] = this.#wrapFieldValue(value, fields[key]);\n\t\t}\n\t\treturn result;\n\t}\n\t#stripUndefined(data) {\n\t\tconst result = {};\n\t\tfor (const [key, value] of Object.entries(data)) if (value !== void 0) result[key] = value;\n\t\treturn result;\n\t}\n\t#toUpdateDocument(data) {\n\t\treturn { $set: this.#toSetFields(data) };\n\t}\n\t#resolveUpdateDoc(dataOrCallback) {\n\t\tif (typeof dataOrCallback === \"function\") {\n\t\t\tconst ops = dataOrCallback(createFieldAccessor());\n\t\t\tif (ops.find((op) => op.field === \"_id\")) throw ormError(\"ORM.FIELD_IMMUTABLE\", \"Mutation payloads cannot modify `_id`\", { meta: { field: \"_id\" } });\n\t\t\tif (ops.length === 0) return { $set: {} };\n\t\t\treturn compileFieldOperations(ops, (field, value, operator) => this.#wrapFieldOpValue(field, value, operator));\n\t\t}\n\t\treturn this.#toUpdateDocument(blindCast(dataOrCallback));\n\t}\n\t#wrapFieldOpValue(field, value, operator) {\n\t\tif (operator === \"$unset\") return value;\n\t\tconst topLevelField = field.split(\".\")[0] ?? field;\n\t\tconst contractField = this.#modelFields()[topLevelField];\n\t\tif (!contractField) return value;\n\t\tif (field.includes(\".\")) return this.#wrapDotPathValue(field, value);\n\t\tif (value instanceof MongoParamRef && contractField.type.kind === \"scalar\") return new MongoParamRef(value.value, { codecId: contractField.type.codecId });\n\t\tif (contractField.type.kind === \"valueObject\" && value instanceof MongoParamRef) {\n\t\t\tconst raw = value.value;\n\t\t\tif (isUnknownRecord(raw)) {\n\t\t\t\tconst voName = contractField.type.name;\n\t\t\t\tconst voDef = domainValueObjectsAtDefaultNamespace(this.#contract.domain)?.[voName];\n\t\t\t\tif (voDef) return this.#wrapValueObject(raw, voDef);\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t}\n\t#wrapDotPathValue(dotPath, value) {\n\t\tconst parts = dotPath.split(\".\");\n\t\tconst fields = this.#modelFields();\n\t\tlet currentField = parts[0] ? fields[parts[0]] : void 0;\n\t\tfor (let i = 1; i < parts.length; i++) {\n\t\t\tif (currentField?.type.kind !== \"valueObject\") return value;\n\t\t\tconst voName = currentField.type.name;\n\t\t\tconst voDef = domainValueObjectsAtDefaultNamespace(this.#contract.domain)?.[voName];\n\t\t\tif (!voDef) return value;\n\t\t\tconst partKey = parts[i];\n\t\t\tcurrentField = partKey ? voDef.fields[partKey] : void 0;\n\t\t}\n\t\tif (currentField?.type.kind === \"scalar\" && value instanceof MongoParamRef) return new MongoParamRef(value.value, { codecId: currentField.type.codecId });\n\t\tif (currentField?.type.kind === \"valueObject\" && value instanceof MongoParamRef) {\n\t\t\tconst raw = value.value;\n\t\t\tif (isUnknownRecord(raw)) {\n\t\t\t\tconst voName = currentField.type.name;\n\t\t\t\tconst voDef = domainValueObjectsAtDefaultNamespace(this.#contract.domain)?.[voName];\n\t\t\t\tif (voDef) return this.#wrapValueObject(raw, voDef);\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t}\n\t#mergeFilters() {\n\t\tconst [single] = this.#state.filters;\n\t\tif (this.#state.filters.length === 1 && single) return single;\n\t\treturn MongoAndExpr.of([...this.#state.filters]);\n\t}\n\t#requireFilters(methodName) {\n\t\tif (this.#state.filters.length === 0) throw ormError(\"ORM.WHERE_MISSING\", `${methodName}() requires a .where() filter. Call .where() before .${methodName}()`, { meta: { method: methodName } });\n\t}\n\t#rejectWindowing(methodName) {\n\t\tif (this.#state.orderBy !== void 0 || this.#state.limit !== void 0 || this.#state.offset !== void 0) throw ormError(\"ORM.OPERATION_UNSUPPORTED\", `${methodName}() does not support orderBy/skip/take. Remove windowing before calling .${methodName}()`, { meta: {\n\t\t\tmethod: methodName,\n\t\t\treason: \"windowing\"\n\t\t} });\n\t}\n\t#rejectIncludes(methodName) {\n\t\tif (this.#state.includes.length > 0) throw ormError(\"ORM.OPERATION_UNSUPPORTED\", `${methodName}() does not support .include(). Remove includes before calling .${methodName}()`, { meta: {\n\t\t\tmethod: methodName,\n\t\t\treason: \"includes\"\n\t\t} });\n\t}\n\t#planMeta() {\n\t\treturn {\n\t\t\ttarget: \"mongo\",\n\t\t\tstorageHash: this.#contract.storage.storageHash,\n\t\t\tlane: \"mongo-orm\"\n\t\t};\n\t}\n\t#injectDiscriminator(data) {\n\t\tif (!this.#variantName) return data;\n\t\tconst model = blindCast(domainModelsAtDefaultNamespace(this.#contract.domain)[this.#modelName]);\n\t\tif (!model?.discriminator || !model.variants) return data;\n\t\tconst variantEntry = model.variants[this.#variantName];\n\t\tif (!variantEntry) return data;\n\t\treturn {\n\t\t\t...data,\n\t\t\t[model.discriminator.field]: variantEntry.value\n\t\t};\n\t}\n\t#clone(overrides) {\n\t\tconst instance = new MongoCollectionImpl(this.#contract, this.#modelName, this.#executor);\n\t\tinstance.#state = {\n\t\t\t...this.#state,\n\t\t\t...overrides\n\t\t};\n\t\tinstance.#collectionName = this.#collectionName;\n\t\tinstance.#variantName = this.#variantName;\n\t\treturn instance;\n\t}\n\t#cloneWithVariant(overrides, variantName) {\n\t\tconst instance = new MongoCollectionImpl(this.#contract, this.#modelName, this.#executor);\n\t\tinstance.#state = {\n\t\t\t...this.#state,\n\t\t\t...overrides\n\t\t};\n\t\tinstance.#collectionName = this.#collectionName;\n\t\tinstance.#variantName = variantName;\n\t\treturn instance;\n\t}\n};\nfunction createMongoCollection(contract, modelName, executor) {\n\treturn new MongoCollectionImpl(contract, modelName, executor);\n}\n//#endregion\n//#region src/mongo-orm.ts\nfunction mongoOrm(options) {\n\tconst { contract, executor } = options;\n\tconst client = {};\n\tfor (const [rootName, rootRef] of Object.entries(contract.roots)) client[rootName] = createMongoCollection(contract, blindCast(rootRef.model), executor);\n\treturn client;\n}\n//#endregion\n//#region src/raw-collection.ts\nfunction createRawMongoCollection(collectionName, meta) {\n\tfunction buildable(command) {\n\t\treturn { build: () => ({\n\t\t\tcollection: collectionName,\n\t\t\tcommand,\n\t\t\tmeta\n\t\t}) };\n\t}\n\treturn {\n\t\taggregate(pipeline) {\n\t\t\treturn buildable(new RawAggregateCommand(collectionName, pipeline));\n\t\t},\n\t\tinsertOne(document) {\n\t\t\treturn buildable(new RawInsertOneCommand(collectionName, document));\n\t\t},\n\t\tinsertMany(documents) {\n\t\t\treturn buildable(new RawInsertManyCommand(collectionName, documents));\n\t\t},\n\t\tupdateOne(filter, update) {\n\t\t\treturn buildable(new RawUpdateOneCommand(collectionName, filter, update));\n\t\t},\n\t\tupdateMany(filter, update) {\n\t\t\treturn buildable(new RawUpdateManyCommand(collectionName, filter, update));\n\t\t},\n\t\tdeleteOne(filter) {\n\t\t\treturn buildable(new RawDeleteOneCommand(collectionName, filter));\n\t\t},\n\t\tdeleteMany(filter) {\n\t\t\treturn buildable(new RawDeleteManyCommand(collectionName, filter));\n\t\t},\n\t\tfindOneAndUpdate(filter, update, options) {\n\t\t\treturn buildable(new RawFindOneAndUpdateCommand(collectionName, filter, update, options?.upsert ?? false));\n\t\t},\n\t\tfindOneAndDelete(filter) {\n\t\t\treturn buildable(new RawFindOneAndDeleteCommand(collectionName, filter));\n\t\t}\n\t};\n}\n//#endregion\n//#region src/mongo-raw.ts\nfunction mongoRaw(options) {\n\tconst { contract } = options;\n\treturn { collection(rootName) {\n\t\tconst modelName = contract.roots[rootName]?.model;\n\t\tconst models = domainModelsAtDefaultNamespace(contract.domain);\n\t\tif (!modelName || !Object.hasOwn(models, modelName)) throw ormError(\"ORM.MODEL_UNKNOWN\", `Unknown model \"${modelName ?? \"\"}\" for root \"${rootName}\"`, { meta: {\n\t\t\tmodel: modelName ?? \"\",\n\t\t\troot: rootName\n\t\t} });\n\t\treturn createRawMongoCollection(models[modelName].storage.collection ?? modelName, {\n\t\t\ttarget: \"mongo\",\n\t\t\tstorageHash: contract.storage.storageHash,\n\t\t\tlane: \"mongo-raw\"\n\t\t});\n\t} };\n}\n//#endregion\nexport { compileMongoQuery, createFieldAccessor, createMongoCollection, mongoOrm, m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aAAa;GACpB,MAAM;EACP,EAAE,CAAC;EACH,OAAO,yBAAyB,OAAO,UAAU,CAAC,QAAQ,cAAc,WAAW;GAClF,QAAQ;GACR,aAAa,SAAS,QAAQ;GAC9B,MAAM;EACP,CAAC;CACF,EAAE;AACH"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AuthoringEntityTypeNamespace } from "@prisma/orm-framework/components/authoring";
|
|
2
|
+
import "@prisma/orm-framework/components/codec";
|
|
3
|
+
import "@prisma/orm-framework/components/components";
|
|
4
|
+
//#region ../../../2-mongo-family/9-family/dist/pack.d.mts
|
|
5
|
+
//#region src/core/authoring-entity-types.d.ts
|
|
6
|
+
declare const mongoFamilyEntityTypes: AuthoringEntityTypeNamespace;
|
|
7
|
+
declare const mongoFamilyPslBlockDescriptors: {
|
|
8
|
+
readonly enum: {
|
|
9
|
+
readonly kind: "pslBlock";
|
|
10
|
+
readonly keyword: "enum";
|
|
11
|
+
readonly discriminator: "enum";
|
|
12
|
+
readonly name: {
|
|
13
|
+
readonly required: true;
|
|
14
|
+
};
|
|
15
|
+
readonly parameters: {};
|
|
16
|
+
readonly variadicParameters: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/exports/pack.d.ts
|
|
21
|
+
declare const mongoFamilyPack: {
|
|
22
|
+
readonly kind: "family";
|
|
23
|
+
readonly id: "mongo";
|
|
24
|
+
readonly familyId: "mongo";
|
|
25
|
+
readonly version: "0.0.1";
|
|
26
|
+
readonly authoring: {
|
|
27
|
+
readonly entityTypes: import("@prisma/orm-framework/components/authoring").AuthoringEntityTypeNamespace;
|
|
28
|
+
readonly pslBlockDescriptors: {
|
|
29
|
+
readonly enum: {
|
|
30
|
+
readonly kind: "pslBlock";
|
|
31
|
+
readonly keyword: "enum";
|
|
32
|
+
readonly discriminator: "enum";
|
|
33
|
+
readonly name: {
|
|
34
|
+
readonly required: true;
|
|
35
|
+
};
|
|
36
|
+
readonly parameters: {};
|
|
37
|
+
readonly variadicParameters: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { mongoFamilyPack as n, mongoFamilyPslBlockDescriptors as r, mongoFamilyEntityTypes as t };
|
|
44
|
+
//# sourceMappingURL=pack-D9aLY50F.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pack-D9aLY50F.d.mts","names":[],"sources":["../../../../2-mongo-family/9-family/dist/pack.d.mts"],"mappings":";;;;;cAOc,wBAAwB;cACxB;WACH;aACE;aACA;aACA;aACA;eACE;;aAEF;aACA;;;;;cAKC;WACH;WACA;WACA;WACA;WACA;aACE,gEAAgE;aAChE;eACE;iBACE;iBACA;iBACA;iBACA;mBACE;;iBAEF;iBACA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { A as MongoIndexKey, j as MongoIndexKeyDirection } from "./mongo-value-set-tNn9-pun-dJYx_rVD.mjs";
|
|
2
|
+
import { $ as MongoOutStage, A as MongoCountStage, At as RawUpdateManyCommand, B as MongoFilterExpr, C as MongoAggReduce, Ct as RawDeleteManyCommand, Dt as RawInsertManyCommand, E as MongoAndExpr, Et as RawFindOneAndUpdateCommand, F as MongoFacetStage, Ft as freezeMongoResultShape, G as MongoGroupId, H as MongoFilterVisitor, I as MongoFieldFilter, It as isExprArray, J as MongoLookupStage, K as MongoGroupStage, L as MongoFieldShape, Lt as isMongoFilterExpr, M as MongoDensifyStage, Mt as UpdateManyCommand, N as MongoExistsExpr, Nt as UpdateOneCommand, O as MongoBucketAutoStage, Ot as RawInsertOneCommand, P as MongoExprFilter, Pt as freezeMongoFieldShape, Q as MongoOrExpr, R as MongoFillOutput, Rt as isRecordArgs, S as MongoAggOperator, St as RawAggregateCommand, T as MongoAggSwitchBranch, Tt as RawFindOneAndDeleteCommand, U as MongoGeoNearStage, V as MongoFilterRewriter, W as MongoGraphLookupStage, X as MongoMergeStage, Y as MongoMatchStage, Z as MongoNotExpr, _ as MongoAggFieldRef, _t as MongoUnwindStage, a as DeleteOneCommand, at as MongoReplaceRootStage, b as MongoAggMap, bt as MongoVectorSearchStage, c as InsertManyCommand, ct as MongoSearchMetaStage, d as MongoAggAccumulator, dt as MongoSkipStage, et as MongoPipelineStage, f as MongoAggArrayFilter, ft as MongoSortByCountStage, g as MongoAggExprVisitor, gt as MongoUnionWithStage, h as MongoAggExprRewriter, ht as MongoStageVisitor, i as DeleteManyCommand, it as MongoRedactStage, j as MongoDensifyRange, jt as RawUpdateOneCommand, k as MongoBucketStage, kt as RawMongoCommand, l as InsertOneCommand, lt as MongoSearchStage, m as MongoAggExpr, mt as MongoStageRewriterContext, n as AggregateCommand, nt as MongoProjectionValue, o as FindOneAndDeleteCommand, ot as MongoResultShape, p as MongoAggCond, pt as MongoSortStage, q as MongoLimitStage, r as AnyMongoCommand, rt as MongoQueryPlan, s as FindOneAndUpdateCommand, st as MongoSampleStage, t as AggRecordArgs, tt as MongoProjectStage, u as MongoAddFieldsStage, ut as MongoSetWindowFieldsStage, v as MongoAggLet, vt as MongoUpdatePipelineStage, w as MongoAggSwitch, wt as RawDeleteOneCommand, x as MongoAggMergeObjects, xt as MongoWindowField, y as MongoAggLiteral, yt as MongoUpdateSpec, z as MongoFillStage } from "./query-plan-C0-Yu8hf-DdilEdW6.mjs";
|
|
3
|
+
import { C as keysToKeySpec, S as defaultMongoIndexName, _ as MongoInspectionCommandVisitor, a as CollModOptions, b as MongoMigrationStep, c as CreateIndexCommand, d as DropIndexCommand, f as ListCollectionsCommand, g as MongoDdlCommandVisitor, h as MongoDataTransformOperation, i as CollModCommand, l as CreateIndexOptions, m as MongoDataTransformCheck, n as AnyMongoInspectionCommand, o as CreateCollectionCommand, p as ListIndexesCommand, r as AnyMongoMigrationOperation, s as CreateCollectionOptions, t as AnyMongoDdlCommand, u as DropCollectionCommand, v as MongoMigrationCheck, x as buildIndexOpId, y as MongoMigrationPlanOperation } from "./control-C7-kthr1.mjs";
|
|
4
|
+
import { a as InsertOneResult, c as UpdateResult, i as InsertManyResult, n as DeleteOneResult, o as UpdateManyResult, r as DeleteResult, s as UpdateOneResult, t as DeleteManyResult } from "./execution-CKnUiOfm.mjs";
|
|
5
|
+
export { type AggRecordArgs, AggregateCommand, type AnyMongoCommand, type AnyMongoDdlCommand, type AnyMongoInspectionCommand, type AnyMongoMigrationOperation, CollModCommand, type CollModOptions, CreateCollectionCommand, type CreateCollectionOptions, CreateIndexCommand, type CreateIndexOptions, DeleteManyCommand, type DeleteManyResult, DeleteOneCommand, type DeleteOneResult, type DeleteResult, DropCollectionCommand, DropIndexCommand, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, type InsertManyResult, InsertOneCommand, type InsertOneResult, ListCollectionsCommand, ListIndexesCommand, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, type MongoAggExpr, type MongoAggExprRewriter, type MongoAggExprVisitor, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, type MongoAggSwitchBranch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, MongoCountStage, type MongoDataTransformCheck, type MongoDataTransformOperation, type MongoDdlCommandVisitor, type MongoDensifyRange, MongoDensifyStage, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, type MongoFieldShape, type MongoFillOutput, MongoFillStage, type MongoFilterExpr, type MongoFilterRewriter, type MongoFilterVisitor, MongoGeoNearStage, MongoGraphLookupStage, type MongoGroupId, MongoGroupStage, type MongoIndexKey, type MongoIndexKeyDirection, type MongoInspectionCommandVisitor, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, type MongoMigrationCheck, type MongoMigrationPlanOperation, type MongoMigrationStep, MongoNotExpr, MongoOrExpr, MongoOutStage, type MongoPipelineStage, MongoProjectStage, type MongoProjectionValue, type MongoQueryPlan, MongoRedactStage, MongoReplaceRootStage, type MongoResultShape, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, type MongoStageRewriterContext, type MongoStageVisitor, MongoUnionWithStage, MongoUnwindStage, type MongoUpdatePipelineStage, type MongoUpdateSpec, MongoVectorSearchStage, type MongoWindowField, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, type RawMongoCommand, RawUpdateManyCommand, RawUpdateOneCommand, UpdateManyCommand, type UpdateManyResult, UpdateOneCommand, type UpdateOneResult, type UpdateResult, buildIndexOpId, defaultMongoIndexName, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isMongoFilterExpr, isRecordArgs, keysToKeySpec };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { a as MongoFieldFilter, c as isMongoFilterExpr, i as MongoExprFilter, o as MongoNotExpr, r as MongoExistsExpr, s as MongoOrExpr, t as MongoAndExpr } from "./filter-expressions-Uo8ZdzwB-53qnqceS.mjs";
|
|
2
|
+
import { $ as RawInsertOneCommand, A as MongoLookupStage, B as MongoSetWindowFieldsStage, C as MongoDensifyStage, D as MongoGraphLookupStage, E as MongoGeoNearStage, F as MongoRedactStage, G as MongoUnwindStage, H as MongoSortByCountStage, I as MongoReplaceRootStage, J as RawDeleteManyCommand, K as MongoVectorSearchStage, L as MongoSampleStage, M as MongoMergeStage, N as MongoOutStage, O as MongoGroupStage, P as MongoProjectStage, Q as RawInsertManyCommand, R as MongoSearchMetaStage, S as MongoCountStage, T as MongoFillStage, U as MongoSortStage, V as MongoSkipStage, W as MongoUnionWithStage, X as RawFindOneAndDeleteCommand, Y as RawDeleteOneCommand, Z as RawFindOneAndUpdateCommand, _ as MongoAggOperator, a as FindOneAndUpdateCommand, at as freezeMongoResultShape, b as MongoBucketAutoStage, c as MongoAddFieldsStage, d as MongoAggCond, et as RawUpdateManyCommand, f as MongoAggFieldRef, g as MongoAggMergeObjects, h as MongoAggMap, i as FindOneAndDeleteCommand, it as freezeMongoFieldShape, j as MongoMatchStage, k as MongoLimitStage, l as MongoAggAccumulator, m as MongoAggLiteral, n as DeleteManyCommand, nt as UpdateManyCommand, o as InsertManyCommand, ot as isExprArray, p as MongoAggLet, q as RawAggregateCommand, r as DeleteOneCommand, rt as UpdateOneCommand, s as InsertOneCommand, st as isRecordArgs, t as AggregateCommand, tt as RawUpdateOneCommand, u as MongoAggArrayFilter, v as MongoAggReduce, w as MongoFacetStage, x as MongoBucketStage, y as MongoAggSwitch, z as MongoSearchStage } from "./execution-D5XyZ5XS.mjs";
|
|
3
|
+
import { a as DropIndexCommand, c as buildIndexOpId, i as DropCollectionCommand, l as defaultMongoIndexName, n as CreateCollectionCommand, o as ListCollectionsCommand, r as CreateIndexCommand, s as ListIndexesCommand, t as CollModCommand, u as keysToKeySpec } from "./control-CClR5JMr.mjs";
|
|
4
|
+
export { AggregateCommand, CollModCommand, CreateCollectionCommand, CreateIndexCommand, DeleteManyCommand, DeleteOneCommand, DropCollectionCommand, DropIndexCommand, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, InsertOneCommand, ListCollectionsCommand, ListIndexesCommand, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, MongoCountStage, MongoDensifyStage, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, MongoFillStage, MongoGeoNearStage, MongoGraphLookupStage, MongoGroupStage, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, MongoNotExpr, MongoOrExpr, MongoOutStage, MongoProjectStage, MongoRedactStage, MongoReplaceRootStage, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, MongoUnionWithStage, MongoUnwindStage, MongoVectorSearchStage, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, RawUpdateManyCommand, RawUpdateOneCommand, UpdateManyCommand, UpdateOneCommand, buildIndexOpId, defaultMongoIndexName, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isMongoFilterExpr, isRecordArgs, keysToKeySpec };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { A as MongoIndexKey, j as MongoIndexKeyDirection } from "./mongo-value-set-tNn9-pun-dJYx_rVD.mjs";
|
|
2
|
+
import { B as MongoFilterExpr, E as MongoAndExpr, H as MongoFilterVisitor, I as MongoFieldFilter, N as MongoExistsExpr, P as MongoExprFilter, Q as MongoOrExpr, Z as MongoNotExpr } from "./query-plan-C0-Yu8hf-DdilEdW6.mjs";
|
|
3
|
+
import { C as keysToKeySpec, S as defaultMongoIndexName, _ as MongoInspectionCommandVisitor, a as CollModOptions, b as MongoMigrationStep, c as CreateIndexCommand, d as DropIndexCommand, f as ListCollectionsCommand, g as MongoDdlCommandVisitor, h as MongoDataTransformOperation, i as CollModCommand, l as CreateIndexOptions, m as MongoDataTransformCheck, n as AnyMongoInspectionCommand, o as CreateCollectionCommand, p as ListIndexesCommand, r as AnyMongoMigrationOperation, s as CreateCollectionOptions, t as AnyMongoDdlCommand, u as DropCollectionCommand, v as MongoMigrationCheck, x as buildIndexOpId, y as MongoMigrationPlanOperation } from "./control-C7-kthr1.mjs";
|
|
4
|
+
export { type AnyMongoDdlCommand, type AnyMongoInspectionCommand, type AnyMongoMigrationOperation, CollModCommand, type CollModOptions, CreateCollectionCommand, type CreateCollectionOptions, CreateIndexCommand, type CreateIndexOptions, DropCollectionCommand, DropIndexCommand, ListCollectionsCommand, ListIndexesCommand, MongoAndExpr, type MongoDataTransformCheck, type MongoDataTransformOperation, type MongoDdlCommandVisitor, MongoExistsExpr, MongoExprFilter, MongoFieldFilter, type MongoFilterExpr, type MongoFilterVisitor, type MongoIndexKey, type MongoIndexKeyDirection, type MongoInspectionCommandVisitor, type MongoMigrationCheck, type MongoMigrationPlanOperation, type MongoMigrationStep, MongoNotExpr, MongoOrExpr, buildIndexOpId, defaultMongoIndexName, keysToKeySpec };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as MongoFieldFilter, i as MongoExprFilter, o as MongoNotExpr, r as MongoExistsExpr, s as MongoOrExpr, t as MongoAndExpr } from "./filter-expressions-Uo8ZdzwB-53qnqceS.mjs";
|
|
2
|
+
import { a as DropIndexCommand, c as buildIndexOpId, i as DropCollectionCommand, l as defaultMongoIndexName, n as CreateCollectionCommand, o as ListCollectionsCommand, r as CreateIndexCommand, s as ListIndexesCommand, t as CollModCommand, u as keysToKeySpec } from "./control-CClR5JMr.mjs";
|
|
3
|
+
export { CollModCommand, CreateCollectionCommand, CreateIndexCommand, DropCollectionCommand, DropIndexCommand, ListCollectionsCommand, ListIndexesCommand, MongoAndExpr, MongoExistsExpr, MongoExprFilter, MongoFieldFilter, MongoNotExpr, MongoOrExpr, buildIndexOpId, defaultMongoIndexName, keysToKeySpec };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $ as MongoOutStage, A as MongoCountStage, At as RawUpdateManyCommand, B as MongoFilterExpr, C as MongoAggReduce, Ct as RawDeleteManyCommand, Dt as RawInsertManyCommand, E as MongoAndExpr, Et as RawFindOneAndUpdateCommand, F as MongoFacetStage, Ft as freezeMongoResultShape, G as MongoGroupId, H as MongoFilterVisitor, I as MongoFieldFilter, It as isExprArray, J as MongoLookupStage, K as MongoGroupStage, L as MongoFieldShape, Lt as isMongoFilterExpr, M as MongoDensifyStage, Mt as UpdateManyCommand, N as MongoExistsExpr, Nt as UpdateOneCommand, O as MongoBucketAutoStage, Ot as RawInsertOneCommand, P as MongoExprFilter, Pt as freezeMongoFieldShape, Q as MongoOrExpr, R as MongoFillOutput, Rt as isRecordArgs, S as MongoAggOperator, St as RawAggregateCommand, T as MongoAggSwitchBranch, Tt as RawFindOneAndDeleteCommand, U as MongoGeoNearStage, V as MongoFilterRewriter, W as MongoGraphLookupStage, X as MongoMergeStage, Y as MongoMatchStage, Z as MongoNotExpr, _ as MongoAggFieldRef, _t as MongoUnwindStage, a as DeleteOneCommand, at as MongoReplaceRootStage, b as MongoAggMap, bt as MongoVectorSearchStage, c as InsertManyCommand, ct as MongoSearchMetaStage, d as MongoAggAccumulator, dt as MongoSkipStage, et as MongoPipelineStage, f as MongoAggArrayFilter, ft as MongoSortByCountStage, g as MongoAggExprVisitor, gt as MongoUnionWithStage, h as MongoAggExprRewriter, ht as MongoStageVisitor, i as DeleteManyCommand, it as MongoRedactStage, j as MongoDensifyRange, jt as RawUpdateOneCommand, k as MongoBucketStage, kt as RawMongoCommand, l as InsertOneCommand, lt as MongoSearchStage, m as MongoAggExpr, mt as MongoStageRewriterContext, n as AggregateCommand, nt as MongoProjectionValue, o as FindOneAndDeleteCommand, ot as MongoResultShape, p as MongoAggCond, pt as MongoSortStage, q as MongoLimitStage, r as AnyMongoCommand, rt as MongoQueryPlan, s as FindOneAndUpdateCommand, st as MongoSampleStage, t as AggRecordArgs, tt as MongoProjectStage, u as MongoAddFieldsStage, ut as MongoSetWindowFieldsStage, v as MongoAggLet, vt as MongoUpdatePipelineStage, w as MongoAggSwitch, wt as RawDeleteOneCommand, x as MongoAggMergeObjects, xt as MongoWindowField, y as MongoAggLiteral, yt as MongoUpdateSpec, z as MongoFillStage } from "./query-plan-C0-Yu8hf-DdilEdW6.mjs";
|
|
2
|
+
import { a as InsertOneResult, c as UpdateResult, i as InsertManyResult, n as DeleteOneResult, o as UpdateManyResult, r as DeleteResult, s as UpdateOneResult, t as DeleteManyResult } from "./execution-CKnUiOfm.mjs";
|
|
3
|
+
export { type AggRecordArgs, AggregateCommand, type AnyMongoCommand, DeleteManyCommand, type DeleteManyResult, DeleteOneCommand, type DeleteOneResult, type DeleteResult, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, type InsertManyResult, InsertOneCommand, type InsertOneResult, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, type MongoAggExpr, type MongoAggExprRewriter, type MongoAggExprVisitor, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, type MongoAggSwitchBranch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, MongoCountStage, type MongoDensifyRange, MongoDensifyStage, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, type MongoFieldShape, type MongoFillOutput, MongoFillStage, type MongoFilterExpr, type MongoFilterRewriter, type MongoFilterVisitor, MongoGeoNearStage, MongoGraphLookupStage, type MongoGroupId, MongoGroupStage, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, MongoNotExpr, MongoOrExpr, MongoOutStage, type MongoPipelineStage, MongoProjectStage, type MongoProjectionValue, type MongoQueryPlan, MongoRedactStage, MongoReplaceRootStage, type MongoResultShape, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, type MongoStageRewriterContext, type MongoStageVisitor, MongoUnionWithStage, MongoUnwindStage, type MongoUpdatePipelineStage, type MongoUpdateSpec, MongoVectorSearchStage, type MongoWindowField, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, type RawMongoCommand, RawUpdateManyCommand, RawUpdateOneCommand, UpdateManyCommand, type UpdateManyResult, UpdateOneCommand, type UpdateOneResult, type UpdateResult, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isMongoFilterExpr, isRecordArgs };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as MongoFieldFilter, c as isMongoFilterExpr, i as MongoExprFilter, o as MongoNotExpr, r as MongoExistsExpr, s as MongoOrExpr, t as MongoAndExpr } from "./filter-expressions-Uo8ZdzwB-53qnqceS.mjs";
|
|
2
|
+
import { $ as RawInsertOneCommand, A as MongoLookupStage, B as MongoSetWindowFieldsStage, C as MongoDensifyStage, D as MongoGraphLookupStage, E as MongoGeoNearStage, F as MongoRedactStage, G as MongoUnwindStage, H as MongoSortByCountStage, I as MongoReplaceRootStage, J as RawDeleteManyCommand, K as MongoVectorSearchStage, L as MongoSampleStage, M as MongoMergeStage, N as MongoOutStage, O as MongoGroupStage, P as MongoProjectStage, Q as RawInsertManyCommand, R as MongoSearchMetaStage, S as MongoCountStage, T as MongoFillStage, U as MongoSortStage, V as MongoSkipStage, W as MongoUnionWithStage, X as RawFindOneAndDeleteCommand, Y as RawDeleteOneCommand, Z as RawFindOneAndUpdateCommand, _ as MongoAggOperator, a as FindOneAndUpdateCommand, at as freezeMongoResultShape, b as MongoBucketAutoStage, c as MongoAddFieldsStage, d as MongoAggCond, et as RawUpdateManyCommand, f as MongoAggFieldRef, g as MongoAggMergeObjects, h as MongoAggMap, i as FindOneAndDeleteCommand, it as freezeMongoFieldShape, j as MongoMatchStage, k as MongoLimitStage, l as MongoAggAccumulator, m as MongoAggLiteral, n as DeleteManyCommand, nt as UpdateManyCommand, o as InsertManyCommand, ot as isExprArray, p as MongoAggLet, q as RawAggregateCommand, r as DeleteOneCommand, rt as UpdateOneCommand, s as InsertOneCommand, st as isRecordArgs, t as AggregateCommand, tt as RawUpdateOneCommand, u as MongoAggArrayFilter, v as MongoAggReduce, w as MongoFacetStage, x as MongoBucketStage, y as MongoAggSwitch, z as MongoSearchStage } from "./execution-D5XyZ5XS.mjs";
|
|
3
|
+
export { AggregateCommand, DeleteManyCommand, DeleteOneCommand, FindOneAndDeleteCommand, FindOneAndUpdateCommand, InsertManyCommand, InsertOneCommand, MongoAddFieldsStage, MongoAggAccumulator, MongoAggArrayFilter, MongoAggCond, MongoAggFieldRef, MongoAggLet, MongoAggLiteral, MongoAggMap, MongoAggMergeObjects, MongoAggOperator, MongoAggReduce, MongoAggSwitch, MongoAndExpr, MongoBucketAutoStage, MongoBucketStage, MongoCountStage, MongoDensifyStage, MongoExistsExpr, MongoExprFilter, MongoFacetStage, MongoFieldFilter, MongoFillStage, MongoGeoNearStage, MongoGraphLookupStage, MongoGroupStage, MongoLimitStage, MongoLookupStage, MongoMatchStage, MongoMergeStage, MongoNotExpr, MongoOrExpr, MongoOutStage, MongoProjectStage, MongoRedactStage, MongoReplaceRootStage, MongoSampleStage, MongoSearchMetaStage, MongoSearchStage, MongoSetWindowFieldsStage, MongoSkipStage, MongoSortByCountStage, MongoSortStage, MongoUnionWithStage, MongoUnwindStage, MongoVectorSearchStage, RawAggregateCommand, RawDeleteManyCommand, RawDeleteOneCommand, RawFindOneAndDeleteCommand, RawFindOneAndUpdateCommand, RawInsertManyCommand, RawInsertOneCommand, RawUpdateManyCommand, RawUpdateOneCommand, UpdateManyCommand, UpdateOneCommand, freezeMongoFieldShape, freezeMongoResultShape, isExprArray, isMongoFilterExpr, isRecordArgs };
|