@@ -21493,7 +21493,7 @@ var Logger = /** @class */ (function () {
2149321493 if (this.enabled) {
2149421494 try {
2149521495 var prettified = '';
21496- if (isObject (query) && query.loc) {
21496+ if (isPlainObject (query) && query.loc) {
2149721497 prettified = prettify(query.loc.source.body);
2149821498 }
2149921499 else {
@@ -27834,14 +27834,20 @@ var Schema = /** @class */ (function () {
2783427834 Schema.returnsConnection = function (field) {
2783527835 return (Schema.getTypeNameOfField(field).endsWith('TypeConnection'));
2783627836 };
27837+ Schema.getRealType = function (type) {
27838+ if (type.kind === 'NON_NULL') {
27839+ return this.getRealType(type.ofType);
27840+ }
27841+ else {
27842+ return type;
27843+ }
27844+ };
2783727845 Schema.getTypeNameOfField = function (field) {
27838- if (field.type.kind === 'LIST') {
27839- return "[" + field.type.ofType.name + "]";
27846+ var type = this.getRealType(field.type);
27847+ if (type.kind === 'LIST') {
27848+ return "[" + type.ofType.name + "]";
2784027849 }
27841- var name = field.type.name ||
27842- field.type.ofType.name ||
27843- field.type.ofType.ofType.name ||
27844- field.type.ofType.ofType.name;
27850+ var name = type.name || type.ofType.name || type.ofType.ofType.name;
2784527851 if (!name)
2784627852 throw new Error("Can't find type name for field " + field.name);
2784727853 return name;
@@ -28114,7 +28120,7 @@ var QueryBuilder = /** @class */ (function () {
2811428120 if (!args)
2811528121 throw new Error('args is undefined');
2811628122 Object.keys(args).forEach(function (key) {
28117- if (args && args[key] && isObject (args[key])) {
28123+ if (args && args[key] && isPlainObject (args[key])) {
2811828124 args[key] = { __type: upcaseFirstLetter(key) };
2811928125 }
2812028126 });
@@ -28179,7 +28185,7 @@ var QueryBuilder = /** @class */ (function () {
2817928185 if (value && !skipFieldDueId && !isConnectionField) {
2818028186 var typeOrValue = '';
2818128187 if (signature) {
28182- if (isObject (value) && value.__type) {
28188+ if (isPlainObject (value) && value.__type) {
2818328189 // Case 2 (User!)
2818428190 typeOrValue = value.__type + 'Input!';
2818528191 }
@@ -29345,7 +29351,7 @@ var VuexORMGraphQL = /** @class */ (function () {
2934529351 var filterObj;
2934629352 return __generator$12(this, function (_a) {
2934729353 filterObj = filter;
29348- if (!isObject (filterObj))
29354+ if (!isPlainObject (filterObj))
2934929355 filterObj = { id: filter };
2935029356 return [2 /*return*/, this.dispatch('fetch', { filter: filterObj, bypassCache: bypassCache })];
2935129357 });
0 commit comments