Skip to content

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

@aronweston

Description

@aronweston

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions