-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
可以问一下这个JOIN到底是干了啥? #789
Labels
Comments
用 INNER JOIN 前没用 User 来过滤主表。 |
我懂了,其实我一开始我这里相当于,取出来了全部的 Task+Project 数据 FULL(并集),然后加上 data["[]"]["Project"] = {
uId: params.uId,
"projectId@": `/${tableName}/projectId`,
...likeList2
} |
直接浏览器抓包,或者断点调试源码,看看 params.uId 是不是传了空值 |
join 看起来比较复杂,我这边用的视图实现,你可以试试 更简单 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
我最近使用apijson导致了一场严重级bug,所以解决后但是不知道为什么,还望解答!
这个是数据库关系:

其中框起来的表示要搜索的字段!
我一开始的apijson是这样的:
结果会导致用户可以看见别的用户的数据,将
join:
|/Project/projectId@,
改成join:
|/Project/projectId@,&/User/id@,
可以是可以了,但是不清楚为什么,可以解答一下吗?The text was updated successfully, but these errors were encountered: