Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem + Solution: More than one row returned by a subquery used as an expression #56

Open
aronweston opened this issue Apr 30, 2022 · 0 comments

Comments

@aronweston
Copy link

I got this error when doing the updoot join table

ERROR: more than one row returned by a subquery used as an expression

This was caused because this subquery was returning more than a single row
select value from updoot where "userId" = ${userId} and "postId" = p.id) "voteStatus

Solved by clearing out my updoots table with Updoot.delete({}) before the migrations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant