odl-graphql-client
Advanced tools
Comparing version 1.0.0-rc.11 to 1.0.0-rc.12
@@ -66,2 +66,16 @@ import ODLGraphqlClient from "./odlGraphQLClient"; | ||
this.graphqlClient.deleteAsync(this.entityName, id); | ||
executeCustomMutationAsync = ( | ||
mutationName: string, | ||
payload: any, | ||
variable: any, | ||
selectFields?: string[] | ||
) => | ||
this.graphqlClient.executeCustomMutationAsync( | ||
this.entityName, | ||
mutationName, | ||
payload, | ||
variable, | ||
selectFields | ||
); | ||
} |
@@ -66,3 +66,3 @@ import { GraphQLClient } from "graphql-request"; | ||
query: string, | ||
operation: MutationOperation, | ||
operation: MutationOperation | string, | ||
payloadModel: any, | ||
@@ -76,3 +76,5 @@ defaultvalue: any, | ||
); | ||
const operationName = this.mutationBuilder.getOperationName(operation); | ||
const operationName = | ||
this.mutationBuilder.getOperationName(operation as MutationOperation) || | ||
(operation as string); | ||
@@ -217,2 +219,26 @@ return this.graphQLClient | ||
}; | ||
executeCustomMutationAsync = ( | ||
entityName: string, | ||
mutationName: string, | ||
payload: any, | ||
variable: any, | ||
selectFields?: string[] | ||
) => { | ||
const mutation = this.mutationBuilder.buildCustomMutationOperation( | ||
entityName, | ||
mutationName, | ||
payload, | ||
variable, | ||
selectFields | ||
); | ||
return this._executeMutationAsync( | ||
entityName, | ||
mutation, | ||
mutationName, | ||
payload, | ||
{} | ||
); | ||
}; | ||
} |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.0.0-rc.11", | ||
"version": "1.0.0-rc.12", | ||
"dependencies": { | ||
@@ -10,0 +10,0 @@ "graphql-request": "^1.8.2", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19006
567
0