dryvPacks

@dryv/mongoosev0.1.0

@nestjs/mongoose schema classes with typed props, references, indexes and invariants.

Mongoose ModelsPersistenceInjectPublished 7 days ago2 downloads

dryv pack add @dryv/mongoose
298 BRaw ↗
terminal
#!/usr/bin/env bash
# Typecheck the generated models against the real @nestjs/mongoose and mongoose, then check
# the schemas they build: collections, typed paths, validation, references, indexes, invariants.
set -euo pipefail
bun install --silent
bunx tsc -p tsconfig.json
bun test models.test.ts