mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 14:06:45 +00:00
feat: GraphQL M2M
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user