feat: GQL - M2M many to many

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-07 19:32:45 +05:30
parent f0b33a9287
commit cf2452b04a
22 changed files with 807 additions and 493 deletions

View File

@@ -74,15 +74,15 @@ export default class GqlApi {
}
get gqlQueryListName() {
return `${this.table.replace(/(?:^|_)(.)/g, (_, m) => m.toUpperCase())}List`;
return `${this.meta._tn}List`;
}
get gqlQueryReadName() {
return `${this.table.replace(/(?:^|_)(.)/g, (_, m) => m.toUpperCase())}Read`;
return `${this.meta._tn}Read`;
}
get tableCamelized() {
return `${this.table.replace(/(?:^|_)(.)/g, (_, m) => m.toUpperCase())}`;
return `${this.meta._tn}`;
}
get gqlReqBody() {