# @prisma-next/mongo-wire

> Wire command types and result types for Prisma Next MongoDB support

Latest version **0.16.0** (published 2026-07-21) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @prisma-next/mongo-wire
pnpm add @prisma-next/mongo-wire
yarn add @prisma-next/mongo-wire
bun add @prisma-next/mongo-wire
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.16.0 |
| Published | 2026-07-21 |
| First published | 2026-04-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=24 |
| Dependencies | 3 |
| Unpacked size | 51.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Maintainers | sevinf, tylerhogarth, aqrln, wmadden-prisma |

## Links

- npm: https://www.npmjs.com/package/@prisma-next/mongo-wire
- Repository: https://github.com/prisma/prisma-next
- Homepage: https://github.com/prisma/prisma-next#readme
- Issues: https://github.com/prisma/prisma-next/issues
- npm.io page: https://npm.io/package/@prisma-next/mongo-wire

## Dependencies (3)

- [@prisma-next/utils](https://npm.io/package/@prisma-next/utils.md) 0.16.0
- [@prisma-next/mongo-value](https://npm.io/package/@prisma-next/mongo-value.md) 0.16.0
- [@prisma-next/mongo-query-ast](https://npm.io/package/@prisma-next/mongo-query-ast.md) 0.16.0

## Recent versions

- 0.16.0 (latest) — 2026-07-21
- 0.16.0-dev.35 (dev) — 2026-08-24
- 0.16.0-dev.34 — 2026-07-27
- 0.16.0-dev.33 — 2026-07-27
- 0.16.0-dev.32 — 2026-07-27
- 0.16.0-dev.31 — 2026-07-27
- 0.16.0-dev.30 — 2026-07-27
- 0.16.0-dev.29 — 2026-07-27
- 0.16.0-dev.28 — 2026-07-24
- 0.16.0-dev.27 — 2026-07-24
- 0.16.0-dev.26 — 2026-07-24
- 0.16.0-dev.25 — 2026-07-24
- 0.16.0-dev.24 — 2026-07-24
- 0.16.0-dev.23 — 2026-07-24
- 0.16.0-dev.22 — 2026-07-23
- … 535 more at https://npm.io/package/@prisma-next/mongo-wire/versions

## README

# @prisma-next/mongo-wire

Wire-level command and result types for MongoDB operations.

## Responsibilities

- **Wire commands**: Typed, frozen command classes for all MongoDB write and aggregation operations — `InsertOneWireCommand`, `InsertManyWireCommand`, `UpdateOneWireCommand`, `UpdateManyWireCommand`, `DeleteOneWireCommand`, `DeleteManyWireCommand`, `FindOneAndUpdateWireCommand`, `FindOneAndDeleteWireCommand`, `AggregateWireCommand`
- **Command union**: `AnyMongoWireCommand` discriminated union (discriminant: `kind`) for dispatch in drivers
- **Result types**: `InsertOneResult`, `InsertManyResult`, `UpdateOneResult`, `UpdateManyResult`, `DeleteOneResult`, `DeleteManyResult` — the shapes returned by drivers after command execution

## Dependencies

- **Depends on**:
  - `@prisma-next/mongo-value` (`Document`, `RawPipeline` for command payloads)
- **Depended on by**:
  - `@prisma-next/mongo-lowering` (adapter and driver interfaces reference wire commands)
  - `@prisma-next/adapter-mongo` (produces wire commands from query plans)

---
_Source: https://npm.io/package/@prisma-next/mongo-wire · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
