@contember/client
Advanced tools
Comparing version 0.8.0-alpha.2.1 to 0.8.0-alpha.2.2
@@ -48,3 +48,5 @@ declare type CreateMutationArguments = 'data'; | ||
delete(name: string, query: WriteBuilder.BuilderFactory<DeleteMutationArguments, DeleteMutationFields, WriteOperation.Delete>, alias?: string): Omit<CrudQueryBuilder_2, Queries>; | ||
inTransaction(alias?: string): CrudQueryBuilder_2; | ||
inTransaction(alias?: string, options?: { | ||
deferForeignKeyConstraints?: boolean; | ||
}): CrudQueryBuilder_2; | ||
getGql(): string; | ||
@@ -51,0 +53,0 @@ } |
@@ -79,14 +79,5 @@ import { CrudQueryBuilderError } from './CrudQueryBuilderError.js'; | ||
} | ||
inTransaction(alias) { | ||
const name = "transaction"; | ||
const [objectName, objectBuilder, fragments] = typeof alias === "string" ? [ | ||
alias, | ||
new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }, void 0, void 0, void 0, name), | ||
this.rootObjectBuilder.fragmentDefinitions | ||
] : [ | ||
name, | ||
new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }), | ||
this.rootObjectBuilder.fragmentDefinitions | ||
]; | ||
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [objectName]: objectBuilder }, fragments)); | ||
inTransaction(alias = "transaction", options = {}) { | ||
const objectBuilder = new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }, options, void 0, void 0, "transaction"); | ||
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [alias]: objectBuilder }, this.rootObjectBuilder.fragmentDefinitions)); | ||
} | ||
@@ -93,0 +84,0 @@ getGql() { |
@@ -78,14 +78,5 @@ import { CrudQueryBuilderError } from "./CrudQueryBuilderError.js"; | ||
} | ||
inTransaction(alias) { | ||
const name = "transaction"; | ||
const [objectName, objectBuilder, fragments] = typeof alias === "string" ? [ | ||
alias, | ||
new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }, void 0, void 0, void 0, name), | ||
this.rootObjectBuilder.fragmentDefinitions | ||
] : [ | ||
name, | ||
new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }), | ||
this.rootObjectBuilder.fragmentDefinitions | ||
]; | ||
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [objectName]: objectBuilder }, fragments)); | ||
inTransaction(alias = "transaction", options = {}) { | ||
const objectBuilder = new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }, options, void 0, void 0, "transaction"); | ||
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [alias]: objectBuilder }, this.rootObjectBuilder.fragmentDefinitions)); | ||
} | ||
@@ -92,0 +83,0 @@ getGql() { |
{ | ||
"name": "@contember/client", | ||
"license": "Apache-2.0", | ||
"version": "0.8.0-alpha.2.1", | ||
"version": "0.8.0-alpha.2.2", | ||
"main": "./dist/production/index.js", | ||
@@ -6,0 +6,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
261744
2660