You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"UserTip_id", "UserTip"."id" AS "UserTip_id", "UserTip"."createdAt" AS "UserTip_createdAt", "UserTip"."userId" AS "UserTip_userId", "UserTip"."isLiked" AS "UserTip_isLiked", "tip"."id" AS "tip_id", "tip"."id" AS "tip_id", "tip"."createdAt" AS "tip_createdAt", "tip"."type" AS "tip_type", "tip"."content" AS "tip_content", "UserTip"."tipId" FROM "user_tip" "UserTip" LEFT JOIN "tip" "tip" ON "tip"."id"="UserTip"."tipId" WHERE ("UserTip"."userId" = $1 OR ("tip"."type" = $3 OR "tip"."type" = $4)
Expected behavior
I would expect to only receive entities with the specified userId. (WHERE ("UserTip"."userId" = $1 AND ("tip"."type" = $3 OR "tip"."type" = $4))
Possible Solution
Environment
Package version: tried both 4.6.2 and 5.0.0-alpha.3
For Tooling issues:
- Node version: v16.17.0
- Platform: Mac
- Database: PostgreSQL 15.0 (Debian 15.0-1.pgdg110+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
Bug Report
Current behavior
When I use the following search query, I receive results from all userId's, despite setting a filter for userId:
for your convenience, a Curl:
Input Code
Controller:
UserTip Entity:
Tip entity:
The generated SQL:
Expected behavior
I would expect to only receive entities with the specified userId. (WHERE ("UserTip"."userId" = $1 AND ("tip"."type" = $3 OR "tip"."type" = $4))
Possible Solution
Environment
Repository with minimal reproduction
repo
The text was updated successfully, but these errors were encountered: