@constructive-io/graphql-server 2.14.8 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codegen/orm/client.d.ts +55 -0
- package/codegen/orm/client.js +75 -0
- package/codegen/orm/index.d.ts +632 -0
- package/codegen/orm/index.js +182 -0
- package/codegen/orm/input-types.d.ts +13248 -0
- package/codegen/orm/input-types.js +7 -0
- package/codegen/orm/models/api.d.ts +42 -0
- package/codegen/orm/models/api.js +77 -0
- package/codegen/orm/models/apiExtension.d.ts +42 -0
- package/codegen/orm/models/apiExtension.js +77 -0
- package/codegen/orm/models/apiModule.d.ts +42 -0
- package/codegen/orm/models/apiModule.js +77 -0
- package/codegen/orm/models/apiSchema.d.ts +42 -0
- package/codegen/orm/models/apiSchema.js +77 -0
- package/codegen/orm/models/app.d.ts +42 -0
- package/codegen/orm/models/app.js +77 -0
- package/codegen/orm/models/checkConstraint.d.ts +42 -0
- package/codegen/orm/models/checkConstraint.js +77 -0
- package/codegen/orm/models/connectedAccountsModule.d.ts +42 -0
- package/codegen/orm/models/connectedAccountsModule.js +77 -0
- package/codegen/orm/models/cryptoAddressesModule.d.ts +42 -0
- package/codegen/orm/models/cryptoAddressesModule.js +77 -0
- package/codegen/orm/models/cryptoAuthModule.d.ts +42 -0
- package/codegen/orm/models/cryptoAuthModule.js +77 -0
- package/codegen/orm/models/database.d.ts +42 -0
- package/codegen/orm/models/database.js +77 -0
- package/codegen/orm/models/databaseExtension.d.ts +42 -0
- package/codegen/orm/models/databaseExtension.js +77 -0
- package/codegen/orm/models/databaseProvision.d.ts +42 -0
- package/codegen/orm/models/databaseProvision.js +77 -0
- package/codegen/orm/models/defaultIdsModule.d.ts +42 -0
- package/codegen/orm/models/defaultIdsModule.js +77 -0
- package/codegen/orm/models/denormalizedTableField.d.ts +42 -0
- package/codegen/orm/models/denormalizedTableField.js +77 -0
- package/codegen/orm/models/domain.d.ts +42 -0
- package/codegen/orm/models/domain.js +77 -0
- package/codegen/orm/models/emailsModule.d.ts +42 -0
- package/codegen/orm/models/emailsModule.js +77 -0
- package/codegen/orm/models/encryptedSecretsModule.d.ts +42 -0
- package/codegen/orm/models/encryptedSecretsModule.js +77 -0
- package/codegen/orm/models/extension.d.ts +42 -0
- package/codegen/orm/models/extension.js +77 -0
- package/codegen/orm/models/field.d.ts +42 -0
- package/codegen/orm/models/field.js +77 -0
- package/codegen/orm/models/fieldModule.d.ts +42 -0
- package/codegen/orm/models/fieldModule.js +77 -0
- package/codegen/orm/models/foreignKeyConstraint.d.ts +42 -0
- package/codegen/orm/models/foreignKeyConstraint.js +77 -0
- package/codegen/orm/models/fullTextSearch.d.ts +42 -0
- package/codegen/orm/models/fullTextSearch.js +77 -0
- package/codegen/orm/models/hierarchyModule.d.ts +42 -0
- package/codegen/orm/models/hierarchyModule.js +77 -0
- package/codegen/orm/models/index.d.ts +64 -0
- package/codegen/orm/models/index.js +127 -0
- package/codegen/orm/models/indexModel.d.ts +42 -0
- package/codegen/orm/models/indexModel.js +77 -0
- package/codegen/orm/models/invitesModule.d.ts +42 -0
- package/codegen/orm/models/invitesModule.js +77 -0
- package/codegen/orm/models/levelsModule.d.ts +42 -0
- package/codegen/orm/models/levelsModule.js +77 -0
- package/codegen/orm/models/limitFunction.d.ts +42 -0
- package/codegen/orm/models/limitFunction.js +77 -0
- package/codegen/orm/models/limitsModule.d.ts +42 -0
- package/codegen/orm/models/limitsModule.js +77 -0
- package/codegen/orm/models/membershipTypesModule.d.ts +42 -0
- package/codegen/orm/models/membershipTypesModule.js +77 -0
- package/codegen/orm/models/membershipsModule.d.ts +42 -0
- package/codegen/orm/models/membershipsModule.js +77 -0
- package/codegen/orm/models/module.d.ts +42 -0
- package/codegen/orm/models/module.js +77 -0
- package/codegen/orm/models/moduleDefinition.d.ts +42 -0
- package/codegen/orm/models/moduleDefinition.js +77 -0
- package/codegen/orm/models/moduleField.d.ts +42 -0
- package/codegen/orm/models/moduleField.js +77 -0
- package/codegen/orm/models/moduleInputRecord.d.ts +42 -0
- package/codegen/orm/models/moduleInputRecord.js +77 -0
- package/codegen/orm/models/moduleOutput.d.ts +42 -0
- package/codegen/orm/models/moduleOutput.js +77 -0
- package/codegen/orm/models/permissionsModule.d.ts +42 -0
- package/codegen/orm/models/permissionsModule.js +77 -0
- package/codegen/orm/models/phoneNumbersModule.d.ts +42 -0
- package/codegen/orm/models/phoneNumbersModule.js +77 -0
- package/codegen/orm/models/policy.d.ts +42 -0
- package/codegen/orm/models/policy.js +77 -0
- package/codegen/orm/models/primaryKeyConstraint.d.ts +42 -0
- package/codegen/orm/models/primaryKeyConstraint.js +77 -0
- package/codegen/orm/models/procedure.d.ts +42 -0
- package/codegen/orm/models/procedure.js +77 -0
- package/codegen/orm/models/profilesModule.d.ts +42 -0
- package/codegen/orm/models/profilesModule.js +77 -0
- package/codegen/orm/models/rlsFunction.d.ts +42 -0
- package/codegen/orm/models/rlsFunction.js +77 -0
- package/codegen/orm/models/rlsModule.d.ts +42 -0
- package/codegen/orm/models/rlsModule.js +77 -0
- package/codegen/orm/models/schema.d.ts +42 -0
- package/codegen/orm/models/schema.js +77 -0
- package/codegen/orm/models/schemaGrant.d.ts +42 -0
- package/codegen/orm/models/schemaGrant.js +77 -0
- package/codegen/orm/models/secretsModule.d.ts +42 -0
- package/codegen/orm/models/secretsModule.js +77 -0
- package/codegen/orm/models/site.d.ts +42 -0
- package/codegen/orm/models/site.js +77 -0
- package/codegen/orm/models/siteMetadatum.d.ts +42 -0
- package/codegen/orm/models/siteMetadatum.js +77 -0
- package/codegen/orm/models/siteModule.d.ts +42 -0
- package/codegen/orm/models/siteModule.js +77 -0
- package/codegen/orm/models/siteTheme.d.ts +42 -0
- package/codegen/orm/models/siteTheme.js +77 -0
- package/codegen/orm/models/table.d.ts +42 -0
- package/codegen/orm/models/table.js +77 -0
- package/codegen/orm/models/tableGrant.d.ts +42 -0
- package/codegen/orm/models/tableGrant.js +77 -0
- package/codegen/orm/models/tokensModule.d.ts +42 -0
- package/codegen/orm/models/tokensModule.js +77 -0
- package/codegen/orm/models/trigger.d.ts +42 -0
- package/codegen/orm/models/trigger.js +77 -0
- package/codegen/orm/models/triggerFunction.d.ts +42 -0
- package/codegen/orm/models/triggerFunction.js +77 -0
- package/codegen/orm/models/uniqueConstraint.d.ts +42 -0
- package/codegen/orm/models/uniqueConstraint.js +77 -0
- package/codegen/orm/models/userAuthModule.d.ts +42 -0
- package/codegen/orm/models/userAuthModule.js +77 -0
- package/codegen/orm/models/usersModule.d.ts +42 -0
- package/codegen/orm/models/usersModule.js +77 -0
- package/codegen/orm/models/uuidModule.d.ts +42 -0
- package/codegen/orm/models/uuidModule.js +77 -0
- package/codegen/orm/mutation/index.d.ts +531 -0
- package/codegen/orm/mutation/index.js +596 -0
- package/codegen/orm/query/index.d.ts +274 -0
- package/codegen/orm/query/index.js +290 -0
- package/codegen/orm/query-builder.d.ts +80 -0
- package/codegen/orm/query-builder.js +249 -0
- package/codegen/orm/select-types.d.ts +50 -0
- package/codegen/orm/select-types.js +7 -0
- package/codegen/orm/types.d.ts +6 -0
- package/codegen/orm/types.js +23 -0
- package/esm/codegen/orm/client.js +70 -0
- package/esm/codegen/orm/index.js +162 -0
- package/esm/codegen/orm/input-types.js +6 -0
- package/esm/codegen/orm/models/api.js +73 -0
- package/esm/codegen/orm/models/apiExtension.js +73 -0
- package/esm/codegen/orm/models/apiModule.js +73 -0
- package/esm/codegen/orm/models/apiSchema.js +73 -0
- package/esm/codegen/orm/models/app.js +73 -0
- package/esm/codegen/orm/models/checkConstraint.js +73 -0
- package/esm/codegen/orm/models/connectedAccountsModule.js +73 -0
- package/esm/codegen/orm/models/cryptoAddressesModule.js +73 -0
- package/esm/codegen/orm/models/cryptoAuthModule.js +73 -0
- package/esm/codegen/orm/models/database.js +73 -0
- package/esm/codegen/orm/models/databaseExtension.js +73 -0
- package/esm/codegen/orm/models/databaseProvision.js +73 -0
- package/esm/codegen/orm/models/defaultIdsModule.js +73 -0
- package/esm/codegen/orm/models/denormalizedTableField.js +73 -0
- package/esm/codegen/orm/models/domain.js +73 -0
- package/esm/codegen/orm/models/emailsModule.js +73 -0
- package/esm/codegen/orm/models/encryptedSecretsModule.js +73 -0
- package/esm/codegen/orm/models/extension.js +73 -0
- package/esm/codegen/orm/models/field.js +73 -0
- package/esm/codegen/orm/models/fieldModule.js +73 -0
- package/esm/codegen/orm/models/foreignKeyConstraint.js +73 -0
- package/esm/codegen/orm/models/fullTextSearch.js +73 -0
- package/esm/codegen/orm/models/hierarchyModule.js +73 -0
- package/esm/codegen/orm/models/index.js +64 -0
- package/esm/codegen/orm/models/indexModel.js +73 -0
- package/esm/codegen/orm/models/invitesModule.js +73 -0
- package/esm/codegen/orm/models/levelsModule.js +73 -0
- package/esm/codegen/orm/models/limitFunction.js +73 -0
- package/esm/codegen/orm/models/limitsModule.js +73 -0
- package/esm/codegen/orm/models/membershipTypesModule.js +73 -0
- package/esm/codegen/orm/models/membershipsModule.js +73 -0
- package/esm/codegen/orm/models/module.js +73 -0
- package/esm/codegen/orm/models/moduleDefinition.js +73 -0
- package/esm/codegen/orm/models/moduleField.js +73 -0
- package/esm/codegen/orm/models/moduleInputRecord.js +73 -0
- package/esm/codegen/orm/models/moduleOutput.js +73 -0
- package/esm/codegen/orm/models/permissionsModule.js +73 -0
- package/esm/codegen/orm/models/phoneNumbersModule.js +73 -0
- package/esm/codegen/orm/models/policy.js +73 -0
- package/esm/codegen/orm/models/primaryKeyConstraint.js +73 -0
- package/esm/codegen/orm/models/procedure.js +73 -0
- package/esm/codegen/orm/models/profilesModule.js +73 -0
- package/esm/codegen/orm/models/rlsFunction.js +73 -0
- package/esm/codegen/orm/models/rlsModule.js +73 -0
- package/esm/codegen/orm/models/schema.js +73 -0
- package/esm/codegen/orm/models/schemaGrant.js +73 -0
- package/esm/codegen/orm/models/secretsModule.js +73 -0
- package/esm/codegen/orm/models/site.js +73 -0
- package/esm/codegen/orm/models/siteMetadatum.js +73 -0
- package/esm/codegen/orm/models/siteModule.js +73 -0
- package/esm/codegen/orm/models/siteTheme.js +73 -0
- package/esm/codegen/orm/models/table.js +73 -0
- package/esm/codegen/orm/models/tableGrant.js +73 -0
- package/esm/codegen/orm/models/tokensModule.js +73 -0
- package/esm/codegen/orm/models/trigger.js +73 -0
- package/esm/codegen/orm/models/triggerFunction.js +73 -0
- package/esm/codegen/orm/models/uniqueConstraint.js +73 -0
- package/esm/codegen/orm/models/userAuthModule.js +73 -0
- package/esm/codegen/orm/models/usersModule.js +73 -0
- package/esm/codegen/orm/models/uuidModule.js +73 -0
- package/esm/codegen/orm/mutation/index.js +593 -0
- package/esm/codegen/orm/query/index.js +287 -0
- package/esm/codegen/orm/query-builder.js +238 -0
- package/esm/codegen/orm/select-types.js +6 -0
- package/esm/codegen/orm/types.js +7 -0
- package/esm/middleware/api.js +10 -9
- package/esm/middleware/gql.js +118 -123
- package/esm/middleware/graphile.js +19 -3
- package/esm/scripts/codegen-schema.js +71 -0
- package/esm/server.js +21 -0
- package/middleware/api.js +9 -8
- package/middleware/gql.d.ts +25 -5
- package/middleware/gql.js +122 -127
- package/middleware/graphile.js +19 -3
- package/middleware/types.d.ts +1 -0
- package/package.json +15 -11
- package/scripts/codegen-schema.d.ts +1 -0
- package/scripts/codegen-schema.js +76 -0
- package/server.js +21 -0
- package/types.d.ts +2 -2
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Model Class
|
|
4
|
+
// ============================================================================
|
|
5
|
+
export class ApiExtensionModel {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
findMany(args) {
|
|
11
|
+
const { document, variables } = buildFindManyDocument('ApiExtension', 'apiExtensions', args?.select, {
|
|
12
|
+
where: args?.where,
|
|
13
|
+
orderBy: args?.orderBy,
|
|
14
|
+
first: args?.first,
|
|
15
|
+
last: args?.last,
|
|
16
|
+
after: args?.after,
|
|
17
|
+
before: args?.before,
|
|
18
|
+
offset: args?.offset,
|
|
19
|
+
}, 'ApiExtensionFilter', 'ApiExtensionsOrderBy');
|
|
20
|
+
return new QueryBuilder({
|
|
21
|
+
client: this.client,
|
|
22
|
+
operation: 'query',
|
|
23
|
+
operationName: 'ApiExtension',
|
|
24
|
+
fieldName: 'apiExtensions',
|
|
25
|
+
document,
|
|
26
|
+
variables,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
findFirst(args) {
|
|
30
|
+
const { document, variables } = buildFindFirstDocument('ApiExtension', 'apiExtensions', args?.select, { where: args?.where }, 'ApiExtensionFilter');
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'ApiExtension',
|
|
35
|
+
fieldName: 'apiExtensions',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('ApiExtension', 'createApiExtension', 'apiExtension', args.select, args.data, 'CreateApiExtensionInput');
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'ApiExtension',
|
|
46
|
+
fieldName: 'createApiExtension',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
update(args) {
|
|
52
|
+
const { document, variables } = buildUpdateDocument('ApiExtension', 'updateApiExtension', 'apiExtension', args.select, args.where, args.data, 'UpdateApiExtensionInput');
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'ApiExtension',
|
|
57
|
+
fieldName: 'updateApiExtension',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
delete(args) {
|
|
63
|
+
const { document, variables } = buildDeleteDocument('ApiExtension', 'deleteApiExtension', 'apiExtension', args.where, 'DeleteApiExtensionInput');
|
|
64
|
+
return new QueryBuilder({
|
|
65
|
+
client: this.client,
|
|
66
|
+
operation: 'mutation',
|
|
67
|
+
operationName: 'ApiExtension',
|
|
68
|
+
fieldName: 'deleteApiExtension',
|
|
69
|
+
document,
|
|
70
|
+
variables,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Model Class
|
|
4
|
+
// ============================================================================
|
|
5
|
+
export class ApiModuleModel {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
findMany(args) {
|
|
11
|
+
const { document, variables } = buildFindManyDocument('ApiModule', 'apiModules', args?.select, {
|
|
12
|
+
where: args?.where,
|
|
13
|
+
orderBy: args?.orderBy,
|
|
14
|
+
first: args?.first,
|
|
15
|
+
last: args?.last,
|
|
16
|
+
after: args?.after,
|
|
17
|
+
before: args?.before,
|
|
18
|
+
offset: args?.offset,
|
|
19
|
+
}, 'ApiModuleFilter', 'ApiModulesOrderBy');
|
|
20
|
+
return new QueryBuilder({
|
|
21
|
+
client: this.client,
|
|
22
|
+
operation: 'query',
|
|
23
|
+
operationName: 'ApiModule',
|
|
24
|
+
fieldName: 'apiModules',
|
|
25
|
+
document,
|
|
26
|
+
variables,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
findFirst(args) {
|
|
30
|
+
const { document, variables } = buildFindFirstDocument('ApiModule', 'apiModules', args?.select, { where: args?.where }, 'ApiModuleFilter');
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'ApiModule',
|
|
35
|
+
fieldName: 'apiModules',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('ApiModule', 'createApiModule', 'apiModule', args.select, args.data, 'CreateApiModuleInput');
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'ApiModule',
|
|
46
|
+
fieldName: 'createApiModule',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
update(args) {
|
|
52
|
+
const { document, variables } = buildUpdateDocument('ApiModule', 'updateApiModule', 'apiModule', args.select, args.where, args.data, 'UpdateApiModuleInput');
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'ApiModule',
|
|
57
|
+
fieldName: 'updateApiModule',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
delete(args) {
|
|
63
|
+
const { document, variables } = buildDeleteDocument('ApiModule', 'deleteApiModule', 'apiModule', args.where, 'DeleteApiModuleInput');
|
|
64
|
+
return new QueryBuilder({
|
|
65
|
+
client: this.client,
|
|
66
|
+
operation: 'mutation',
|
|
67
|
+
operationName: 'ApiModule',
|
|
68
|
+
fieldName: 'deleteApiModule',
|
|
69
|
+
document,
|
|
70
|
+
variables,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Model Class
|
|
4
|
+
// ============================================================================
|
|
5
|
+
export class ApiSchemaModel {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
findMany(args) {
|
|
11
|
+
const { document, variables } = buildFindManyDocument('ApiSchema', 'apiSchemas', args?.select, {
|
|
12
|
+
where: args?.where,
|
|
13
|
+
orderBy: args?.orderBy,
|
|
14
|
+
first: args?.first,
|
|
15
|
+
last: args?.last,
|
|
16
|
+
after: args?.after,
|
|
17
|
+
before: args?.before,
|
|
18
|
+
offset: args?.offset,
|
|
19
|
+
}, 'ApiSchemaFilter', 'ApiSchemasOrderBy');
|
|
20
|
+
return new QueryBuilder({
|
|
21
|
+
client: this.client,
|
|
22
|
+
operation: 'query',
|
|
23
|
+
operationName: 'ApiSchema',
|
|
24
|
+
fieldName: 'apiSchemas',
|
|
25
|
+
document,
|
|
26
|
+
variables,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
findFirst(args) {
|
|
30
|
+
const { document, variables } = buildFindFirstDocument('ApiSchema', 'apiSchemas', args?.select, { where: args?.where }, 'ApiSchemaFilter');
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'ApiSchema',
|
|
35
|
+
fieldName: 'apiSchemas',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('ApiSchema', 'createApiSchema', 'apiSchema', args.select, args.data, 'CreateApiSchemaInput');
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'ApiSchema',
|
|
46
|
+
fieldName: 'createApiSchema',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
update(args) {
|
|
52
|
+
const { document, variables } = buildUpdateDocument('ApiSchema', 'updateApiSchema', 'apiSchema', args.select, args.where, args.data, 'UpdateApiSchemaInput');
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'ApiSchema',
|
|
57
|
+
fieldName: 'updateApiSchema',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
delete(args) {
|
|
63
|
+
const { document, variables } = buildDeleteDocument('ApiSchema', 'deleteApiSchema', 'apiSchema', args.where, 'DeleteApiSchemaInput');
|
|
64
|
+
return new QueryBuilder({
|
|
65
|
+
client: this.client,
|
|
66
|
+
operation: 'mutation',
|
|
67
|
+
operationName: 'ApiSchema',
|
|
68
|
+
fieldName: 'deleteApiSchema',
|
|
69
|
+
document,
|
|
70
|
+
variables,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Model Class
|
|
4
|
+
// ============================================================================
|
|
5
|
+
export class AppModel {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
findMany(args) {
|
|
11
|
+
const { document, variables } = buildFindManyDocument('App', 'apps', args?.select, {
|
|
12
|
+
where: args?.where,
|
|
13
|
+
orderBy: args?.orderBy,
|
|
14
|
+
first: args?.first,
|
|
15
|
+
last: args?.last,
|
|
16
|
+
after: args?.after,
|
|
17
|
+
before: args?.before,
|
|
18
|
+
offset: args?.offset,
|
|
19
|
+
}, 'AppFilter', 'AppsOrderBy');
|
|
20
|
+
return new QueryBuilder({
|
|
21
|
+
client: this.client,
|
|
22
|
+
operation: 'query',
|
|
23
|
+
operationName: 'App',
|
|
24
|
+
fieldName: 'apps',
|
|
25
|
+
document,
|
|
26
|
+
variables,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
findFirst(args) {
|
|
30
|
+
const { document, variables } = buildFindFirstDocument('App', 'apps', args?.select, { where: args?.where }, 'AppFilter');
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'App',
|
|
35
|
+
fieldName: 'apps',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('App', 'createApp', 'app', args.select, args.data, 'CreateAppInput');
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'App',
|
|
46
|
+
fieldName: 'createApp',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
update(args) {
|
|
52
|
+
const { document, variables } = buildUpdateDocument('App', 'updateApp', 'app', args.select, args.where, args.data, 'UpdateAppInput');
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'App',
|
|
57
|
+
fieldName: 'updateApp',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
delete(args) {
|
|
63
|
+
const { document, variables } = buildDeleteDocument('App', 'deleteApp', 'app', args.where, 'DeleteAppInput');
|
|
64
|
+
return new QueryBuilder({
|
|
65
|
+
client: this.client,
|
|
66
|
+
operation: 'mutation',
|
|
67
|
+
operationName: 'App',
|
|
68
|
+
fieldName: 'deleteApp',
|
|
69
|
+
document,
|
|
70
|
+
variables,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Model Class
|
|
4
|
+
// ============================================================================
|
|
5
|
+
export class CheckConstraintModel {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
findMany(args) {
|
|
11
|
+
const { document, variables } = buildFindManyDocument('CheckConstraint', 'checkConstraints', args?.select, {
|
|
12
|
+
where: args?.where,
|
|
13
|
+
orderBy: args?.orderBy,
|
|
14
|
+
first: args?.first,
|
|
15
|
+
last: args?.last,
|
|
16
|
+
after: args?.after,
|
|
17
|
+
before: args?.before,
|
|
18
|
+
offset: args?.offset,
|
|
19
|
+
}, 'CheckConstraintFilter', 'CheckConstraintsOrderBy');
|
|
20
|
+
return new QueryBuilder({
|
|
21
|
+
client: this.client,
|
|
22
|
+
operation: 'query',
|
|
23
|
+
operationName: 'CheckConstraint',
|
|
24
|
+
fieldName: 'checkConstraints',
|
|
25
|
+
document,
|
|
26
|
+
variables,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
findFirst(args) {
|
|
30
|
+
const { document, variables } = buildFindFirstDocument('CheckConstraint', 'checkConstraints', args?.select, { where: args?.where }, 'CheckConstraintFilter');
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'CheckConstraint',
|
|
35
|
+
fieldName: 'checkConstraints',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('CheckConstraint', 'createCheckConstraint', 'checkConstraint', args.select, args.data, 'CreateCheckConstraintInput');
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'CheckConstraint',
|
|
46
|
+
fieldName: 'createCheckConstraint',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
update(args) {
|
|
52
|
+
const { document, variables } = buildUpdateDocument('CheckConstraint', 'updateCheckConstraint', 'checkConstraint', args.select, args.where, args.data, 'UpdateCheckConstraintInput');
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'CheckConstraint',
|
|
57
|
+
fieldName: 'updateCheckConstraint',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
delete(args) {
|
|
63
|
+
const { document, variables } = buildDeleteDocument('CheckConstraint', 'deleteCheckConstraint', 'checkConstraint', args.where, 'DeleteCheckConstraintInput');
|
|
64
|
+
return new QueryBuilder({
|
|
65
|
+
client: this.client,
|
|
66
|
+
operation: 'mutation',
|
|
67
|
+
operationName: 'CheckConstraint',
|
|
68
|
+
fieldName: 'deleteCheckConstraint',
|
|
69
|
+
document,
|
|
70
|
+
variables,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Model Class
|
|
4
|
+
// ============================================================================
|
|
5
|
+
export class ConnectedAccountsModuleModel {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
findMany(args) {
|
|
11
|
+
const { document, variables } = buildFindManyDocument('ConnectedAccountsModule', 'connectedAccountsModules', args?.select, {
|
|
12
|
+
where: args?.where,
|
|
13
|
+
orderBy: args?.orderBy,
|
|
14
|
+
first: args?.first,
|
|
15
|
+
last: args?.last,
|
|
16
|
+
after: args?.after,
|
|
17
|
+
before: args?.before,
|
|
18
|
+
offset: args?.offset,
|
|
19
|
+
}, 'ConnectedAccountsModuleFilter', 'ConnectedAccountsModulesOrderBy');
|
|
20
|
+
return new QueryBuilder({
|
|
21
|
+
client: this.client,
|
|
22
|
+
operation: 'query',
|
|
23
|
+
operationName: 'ConnectedAccountsModule',
|
|
24
|
+
fieldName: 'connectedAccountsModules',
|
|
25
|
+
document,
|
|
26
|
+
variables,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
findFirst(args) {
|
|
30
|
+
const { document, variables } = buildFindFirstDocument('ConnectedAccountsModule', 'connectedAccountsModules', args?.select, { where: args?.where }, 'ConnectedAccountsModuleFilter');
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'ConnectedAccountsModule',
|
|
35
|
+
fieldName: 'connectedAccountsModules',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('ConnectedAccountsModule', 'createConnectedAccountsModule', 'connectedAccountsModule', args.select, args.data, 'CreateConnectedAccountsModuleInput');
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'ConnectedAccountsModule',
|
|
46
|
+
fieldName: 'createConnectedAccountsModule',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
update(args) {
|
|
52
|
+
const { document, variables } = buildUpdateDocument('ConnectedAccountsModule', 'updateConnectedAccountsModule', 'connectedAccountsModule', args.select, args.where, args.data, 'UpdateConnectedAccountsModuleInput');
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'ConnectedAccountsModule',
|
|
57
|
+
fieldName: 'updateConnectedAccountsModule',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
delete(args) {
|
|
63
|
+
const { document, variables } = buildDeleteDocument('ConnectedAccountsModule', 'deleteConnectedAccountsModule', 'connectedAccountsModule', args.where, 'DeleteConnectedAccountsModuleInput');
|
|
64
|
+
return new QueryBuilder({
|
|
65
|
+
client: this.client,
|
|
66
|
+
operation: 'mutation',
|
|
67
|
+
operationName: 'ConnectedAccountsModule',
|
|
68
|
+
fieldName: 'deleteConnectedAccountsModule',
|
|
69
|
+
document,
|
|
70
|
+
variables,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Model Class
|
|
4
|
+
// ============================================================================
|
|
5
|
+
export class CryptoAddressesModuleModel {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
findMany(args) {
|
|
11
|
+
const { document, variables } = buildFindManyDocument('CryptoAddressesModule', 'cryptoAddressesModules', args?.select, {
|
|
12
|
+
where: args?.where,
|
|
13
|
+
orderBy: args?.orderBy,
|
|
14
|
+
first: args?.first,
|
|
15
|
+
last: args?.last,
|
|
16
|
+
after: args?.after,
|
|
17
|
+
before: args?.before,
|
|
18
|
+
offset: args?.offset,
|
|
19
|
+
}, 'CryptoAddressesModuleFilter', 'CryptoAddressesModulesOrderBy');
|
|
20
|
+
return new QueryBuilder({
|
|
21
|
+
client: this.client,
|
|
22
|
+
operation: 'query',
|
|
23
|
+
operationName: 'CryptoAddressesModule',
|
|
24
|
+
fieldName: 'cryptoAddressesModules',
|
|
25
|
+
document,
|
|
26
|
+
variables,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
findFirst(args) {
|
|
30
|
+
const { document, variables } = buildFindFirstDocument('CryptoAddressesModule', 'cryptoAddressesModules', args?.select, { where: args?.where }, 'CryptoAddressesModuleFilter');
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'CryptoAddressesModule',
|
|
35
|
+
fieldName: 'cryptoAddressesModules',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('CryptoAddressesModule', 'createCryptoAddressesModule', 'cryptoAddressesModule', args.select, args.data, 'CreateCryptoAddressesModuleInput');
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'CryptoAddressesModule',
|
|
46
|
+
fieldName: 'createCryptoAddressesModule',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
update(args) {
|
|
52
|
+
const { document, variables } = buildUpdateDocument('CryptoAddressesModule', 'updateCryptoAddressesModule', 'cryptoAddressesModule', args.select, args.where, args.data, 'UpdateCryptoAddressesModuleInput');
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'CryptoAddressesModule',
|
|
57
|
+
fieldName: 'updateCryptoAddressesModule',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
delete(args) {
|
|
63
|
+
const { document, variables } = buildDeleteDocument('CryptoAddressesModule', 'deleteCryptoAddressesModule', 'cryptoAddressesModule', args.where, 'DeleteCryptoAddressesModuleInput');
|
|
64
|
+
return new QueryBuilder({
|
|
65
|
+
client: this.client,
|
|
66
|
+
operation: 'mutation',
|
|
67
|
+
operationName: 'CryptoAddressesModule',
|
|
68
|
+
fieldName: 'deleteCryptoAddressesModule',
|
|
69
|
+
document,
|
|
70
|
+
variables,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Model Class
|
|
4
|
+
// ============================================================================
|
|
5
|
+
export class CryptoAuthModuleModel {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
findMany(args) {
|
|
11
|
+
const { document, variables } = buildFindManyDocument('CryptoAuthModule', 'cryptoAuthModules', args?.select, {
|
|
12
|
+
where: args?.where,
|
|
13
|
+
orderBy: args?.orderBy,
|
|
14
|
+
first: args?.first,
|
|
15
|
+
last: args?.last,
|
|
16
|
+
after: args?.after,
|
|
17
|
+
before: args?.before,
|
|
18
|
+
offset: args?.offset,
|
|
19
|
+
}, 'CryptoAuthModuleFilter', 'CryptoAuthModulesOrderBy');
|
|
20
|
+
return new QueryBuilder({
|
|
21
|
+
client: this.client,
|
|
22
|
+
operation: 'query',
|
|
23
|
+
operationName: 'CryptoAuthModule',
|
|
24
|
+
fieldName: 'cryptoAuthModules',
|
|
25
|
+
document,
|
|
26
|
+
variables,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
findFirst(args) {
|
|
30
|
+
const { document, variables } = buildFindFirstDocument('CryptoAuthModule', 'cryptoAuthModules', args?.select, { where: args?.where }, 'CryptoAuthModuleFilter');
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'CryptoAuthModule',
|
|
35
|
+
fieldName: 'cryptoAuthModules',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('CryptoAuthModule', 'createCryptoAuthModule', 'cryptoAuthModule', args.select, args.data, 'CreateCryptoAuthModuleInput');
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'CryptoAuthModule',
|
|
46
|
+
fieldName: 'createCryptoAuthModule',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
update(args) {
|
|
52
|
+
const { document, variables } = buildUpdateDocument('CryptoAuthModule', 'updateCryptoAuthModule', 'cryptoAuthModule', args.select, args.where, args.data, 'UpdateCryptoAuthModuleInput');
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'CryptoAuthModule',
|
|
57
|
+
fieldName: 'updateCryptoAuthModule',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
delete(args) {
|
|
63
|
+
const { document, variables } = buildDeleteDocument('CryptoAuthModule', 'deleteCryptoAuthModule', 'cryptoAuthModule', args.where, 'DeleteCryptoAuthModuleInput');
|
|
64
|
+
return new QueryBuilder({
|
|
65
|
+
client: this.client,
|
|
66
|
+
operation: 'mutation',
|
|
67
|
+
operationName: 'CryptoAuthModule',
|
|
68
|
+
fieldName: 'deleteCryptoAuthModule',
|
|
69
|
+
document,
|
|
70
|
+
variables,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// Model Class
|
|
4
|
+
// ============================================================================
|
|
5
|
+
export class DatabaseModel {
|
|
6
|
+
client;
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
findMany(args) {
|
|
11
|
+
const { document, variables } = buildFindManyDocument('Database', 'databases', args?.select, {
|
|
12
|
+
where: args?.where,
|
|
13
|
+
orderBy: args?.orderBy,
|
|
14
|
+
first: args?.first,
|
|
15
|
+
last: args?.last,
|
|
16
|
+
after: args?.after,
|
|
17
|
+
before: args?.before,
|
|
18
|
+
offset: args?.offset,
|
|
19
|
+
}, 'DatabaseFilter', 'DatabasesOrderBy');
|
|
20
|
+
return new QueryBuilder({
|
|
21
|
+
client: this.client,
|
|
22
|
+
operation: 'query',
|
|
23
|
+
operationName: 'Database',
|
|
24
|
+
fieldName: 'databases',
|
|
25
|
+
document,
|
|
26
|
+
variables,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
findFirst(args) {
|
|
30
|
+
const { document, variables } = buildFindFirstDocument('Database', 'databases', args?.select, { where: args?.where }, 'DatabaseFilter');
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'Database',
|
|
35
|
+
fieldName: 'databases',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('Database', 'createDatabase', 'database', args.select, args.data, 'CreateDatabaseInput');
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'Database',
|
|
46
|
+
fieldName: 'createDatabase',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
update(args) {
|
|
52
|
+
const { document, variables } = buildUpdateDocument('Database', 'updateDatabase', 'database', args.select, args.where, args.data, 'UpdateDatabaseInput');
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'mutation',
|
|
56
|
+
operationName: 'Database',
|
|
57
|
+
fieldName: 'updateDatabase',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
delete(args) {
|
|
63
|
+
const { document, variables } = buildDeleteDocument('Database', 'deleteDatabase', 'database', args.where, 'DeleteDatabaseInput');
|
|
64
|
+
return new QueryBuilder({
|
|
65
|
+
client: this.client,
|
|
66
|
+
operation: 'mutation',
|
|
67
|
+
operationName: 'Database',
|
|
68
|
+
fieldName: 'deleteDatabase',
|
|
69
|
+
document,
|
|
70
|
+
variables,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|