graphlit-client 1.0.20240418013 → 1.0.20240418015
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/dist/client.js +2 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
@@ -421,7 +421,7 @@ class Graphlit {
|
|
421
421
|
// helper functions
|
422
422
|
mutateAndCheckError(mutation, variables) {
|
423
423
|
return __awaiter(this, void 0, void 0, function* () {
|
424
|
-
if (
|
424
|
+
if (this.client === undefined)
|
425
425
|
throw new Error("Apollo Client not configured.");
|
426
426
|
try {
|
427
427
|
const result = yield this.client.mutate({
|
@@ -446,7 +446,7 @@ class Graphlit {
|
|
446
446
|
}
|
447
447
|
queryAndCheckError(query, variables) {
|
448
448
|
return __awaiter(this, void 0, void 0, function* () {
|
449
|
-
if (
|
449
|
+
if (this.client === undefined)
|
450
450
|
throw new Error("Apollo Client not configured.");
|
451
451
|
try {
|
452
452
|
const result = yield this.client.query({
|