mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 07:36:36 +00:00
feat: many to many - child listing
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -48,7 +48,19 @@ export default class RestApi {
|
||||
async paginatedList(params) {
|
||||
// const list = await this.list(params);
|
||||
// const count = (await this.count({where: params.where || ''})).count;
|
||||
const [list, {count}] = await Promise.all([this.list(params), this.count({where: params.where || ''})]);
|
||||
const [list, {count}] = await Promise.all([this.list(params), this.count({
|
||||
where: params.where || '',
|
||||
conditionGraph: params.conditionGraph
|
||||
})]);
|
||||
return {list, count};
|
||||
}
|
||||
|
||||
async paginatedM2mNotChildrenList(params, assoc, pid) {
|
||||
///api/v1/Film/m2mNotChildren/film_actor/44
|
||||
// const list = await this.list(params);
|
||||
// const count = (await this.count({where: params.where || ''})).count;
|
||||
const {list, info: {count}} = (await this.get(`/nc/${this.$ctx.$route.params.project_id}/api/v1/${this.table}/m2mNotChildren/${assoc}/${pid}`, params)).data
|
||||
debugger
|
||||
return {list, count};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user