This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
Self related model findMany query fails #5045
Labels
status/stale
Marked as state by the GitHub stalebot
I have this model,
Item
, that can be linked to otherItem
s.The
connect
/disconnect
API works great, but when I go to actually query foritems
related to thisitem
Prisma fails with this error:Error occurred during query execution: ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState("42601"), message: "syntax error at or near \")\"", detail: None, hint: None, position: Some(Original(374)), where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("scan.l"), line: Some(1134), routine: Some("scanner_yyerror") }) }) })
Here is a screenshot of my model:
Versions:
"prisma2": "2.0.0-preview024"
"@prisma/client": "2.0.0-preview024"
"nexus": "^0.12.0-rc.9"
"nexus-prisma": "^0.11.1"
The text was updated successfully, but these errors were encountered: