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

Update 数据模型方法V2.md #15911

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export default async function ({event, data}) {
| `filter` | `{ where: FilterObject}]` | 无 | 是 | 复杂查询结构 |
| `select` | `{ [key: string]: boolean }` | 无 | `{ $master: true }` | 是 | 可以指定返回本表或者关联表的字段,如果想查询本表所有字段,请使用 `{ $master: true }` |
| getCount | `boolean` | `false` | 否 | 获取 filter 命中条件的查询条数 |
| pageSize | `number` | `undefined` | 否 | 分页大小,建议指定 |
| pageSize | `number` | 10 | 否 | 分页大小,建议指定,如需设置为其它值,需要和pageNo配合使用,两者同时指定才会生效 |
| pageNumber | `number` | 1 | 否 | 分页数目 |
| orderBy | `{[key: string]: "acs" | "desc" }[]` | 无 | 否 | 排序,当前仅支持最多 3 字段排序 |

Expand Down