feat: manyToMany support

Signed-off-by: Pranav C Balan <pranavxc@gmail.com>
This commit is contained in:
Pranav C Balan
2021-06-06 19:53:47 +05:30
committed by Pranav C
parent 91286f4f30
commit 3c5bfe289e
11 changed files with 167 additions and 23 deletions

View File

@@ -7,9 +7,8 @@ export default class RestApi {
// todo: - get version letter and use table alias
async list(params) {
const data = await this.get(`/nc/${this.$ctx.$route.params.project_id}/api/v1/${this.table}`, params);
// data.headers['xc-db-response'];
// const data = await this.get(`/nc/${this.$ctx.$route.params.project_id}/api/v1/${this.table}`, params)
const data = await this.get(`/nc/${this.$ctx.$route.params.project_id}/api/v1/${this.table}/nestedList`, params)
return data.data;
}