Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Self related model findMany query fails #5045

Closed
tylerjbainbridge opened this issue Mar 16, 2020 · 1 comment
Closed

Self related model findMany query fails #5045

tylerjbainbridge opened this issue Mar 16, 2020 · 1 comment
Labels
status/stale Marked as state by the GitHub stalebot

Comments

@tylerjbainbridge
Copy link

I have this model, Item, that can be linked to other Items.

The connect/disconnect API works great, but when I go to actually query for items related to this item 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:
image

Versions:
"prisma2": "2.0.0-preview024"
"@prisma/client": "2.0.0-preview024"
"nexus": "^0.12.0-rc.9"
"nexus-prisma": "^0.11.1"

@stale
Copy link

stale bot commented Apr 30, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale Marked as state by the GitHub stalebot label Apr 30, 2020
@stale stale bot closed this as completed May 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/stale Marked as state by the GitHub stalebot
Projects
None yet
Development

No branches or pull requests

1 participant