feat: GraphQL M2M

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-06 19:34:42 +05:30
parent 152572b166
commit dd0e8d9916
22 changed files with 589 additions and 100 deletions

View File

@@ -3,9 +3,9 @@ import GqlApi from "@/components/project/spreadsheet/apis/gqlApi";
import GrpcApi from "@/components/project/spreadsheet/apis/grpcApi";
export default class ApiFactory {
static create(type, table, columns, ctx) {
static create(type, table, columns, ctx, meta) {
if (type === 'graphql') {
return new GqlApi(table, columns, ctx);
return new GqlApi(table, columns, meta, ctx,);
} else if (type === 'grpc') {
return new GrpcApi(table, ctx)
} else if (type === 'rest') {