DeprecatedThis package is deprecated
@prisma-next/mongo-contract
Contract types and validation for the MongoDB family.
Responsibilities
- Contract types:
MongoContract,MongoContractWithTypeMaps,MongoTypeMaps,MongoModelDefinition,MongoStorageShape(raw-JSON storage shape) — the typed contract representation for MongoDB targets - Storage IR:
MongoStorage— the in-memory storage class instantiated by the per-target contract serializer; structurally satisfiesMongoStorageShapeand additionally carries thenamespacesmap - Type-level extraction:
ExtractMongoTypeMaps,ExtractMongoCodecTypes,InferModelRow— utility types for deriving codec types and row shapes from a contract - Structural schema + storage validation primitives:
MongoContractSchema(arktype envelope) andvalidateMongoStorage()— consumed by the familyContractSerializerBaseto validate Mongo contracts at the deserializer seam. No freestandingvalidateMongoContractwrapper is exported; callers cross the seam viafamilyInstance.deserializeContract(...).
Dependencies
- Depends on:
@prisma-next/contract(baseContract,ContractModel,StorageBasetypes andvalidateContractDomain)arktype(runtime validation)
- Depended on by:
@prisma-next/mongo-orm(contract-typed queries and row inference)@prisma-next/mongo-emitter(contract emission and validation)@prisma-next/mongo-contract-psl(PSL-to-contract interpretation)@prisma-next/mongo-runtime(contract-typed plan execution)