prisma: Query compiler + Driver adapter causing "Missing data field (Value)"

Bug description

Any fields in my schema that are bigints being queried, or included in a query results in an error.

I’m not sure if it’s my stack but I’m using Nuxt3 with prisma in a workspace:* pnpm package. This issue does not occur without using the driver adapter.

Missing data field (Value): ‘user_id’; node: {“type”:“Value”,“dbName”:“user_id”,“resultType”:{“type”:“BigInt”}}; data: {“id”:“6e77676879a61f0c592142aeadd53bde79b8d85dbf1da1f477acaa224ee0924e”,“userId”:“3”,“ipAddress”:“::1”,“country”:null,“userAgent”:“UA”,“expiresAt”:“2025-06-27T17:30:44.649+00:00”,“user”:"{"id": 3, "shop": {"id": 3, "fee": 80.00, "name": null, "avatar": null, "banner": null, "userId": 3,

This is just a snippet of the data but I’m not sure what is causing the issue exactly

Severity

🚨 Critical: Data loss, app crash, security issue

Reproduction

Expected vs. Actual Behavior

It’s supposed to work exactly how it works without the driver adapter preview feature, but causes this error instead.

Frequency

Consistently reproducible

Does this occur in development or production?

Only in development (e.g., CLI tools, migrations, Prisma Studio)

Is this a regression?

Worked without driver adapters.

Workaround

Not using driver adapters with Nuxt3

Prisma Schema & Queries

// Add relevant schema.prisma snippet
	const result = await prisma.session.findUnique({
		where: {
			id: sessionId
		},
		include: {
			user: {
				include: {
					shop: {
						include: {
							products: true
						}
					},
					permissions: {
						include: {
							permission: true
						}
					},
					roles: {
						include: {
							role: {
								include: {
									rolePermissions: {
										include: {
											permission: true
										}
									}
								}
							}
						}
					},
					providers: true
				}
			}
		}
	});

Prisma Config

// Add your `prisma.config.ts`

Logs & Debug Info

// Debug logs here

Environment & Setup

  • OS:
  • Database:
  • Node.js version:

Prisma Version

Environment variables loaded from .env
prisma                  : 6.9.0
@prisma/client          : 6.9.0
Computed binaryTarget   : darwin-arm64
Operating System        : darwin
Architecture            : arm64
Node.js                 : v22.14.0
TypeScript              : 5.8.3
Query Engine (Node-API) : libquery-engine 81e4af48011447c3cc503a190e86995b66d2a28e (at ../../node_modules/.pnpm/@prisma+engines@6.9.0/node_modules/@prisma/engines/libquery_engine-darwin-arm64.dylib.node)
Schema Engine           : schema-engine-cli 81e4af48011447c3cc503a190e86995b66d2a28e (at ../../node_modules/.pnpm/@prisma+engines@6.9.0/node_modules/@prisma/engines/schema-engine-darwin-arm64)
Schema Wasm             : @prisma/prisma-schema-wasm 6.9.0-10.81e4af48011447c3cc503a190e86995b66d2a28e
Default Engines Hash    : 81e4af48011447c3cc503a190e86995b66d2a28e
Studio                  : 0.511.0

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (5 by maintainers)

Commits related to this issue

Most upvoted comments

hi @joaotonaco @rocketiscool @jacek-prisma,

I’ve verified that the issue only reproduces when queryCompiler and relationJoins preview features are used together.

Removing relationJoins and leaving queryCompiler enabled resolves the issue.