Skip to content

Commit 1e4ce76

Browse files
committed
0.0.34
1 parent 4aaecee commit 1e4ce76

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/vuex-orm-apollo.esm.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9672,14 +9672,18 @@ var Model = /** @class */ (function () {
96729672
return fields;
96739673
};
96749674
/**
9675-
* Tells if a field should be ignored. This is true for fields that start with a `$` and all foreign keys
9675+
* Tells if a field should be ignored. This is true for fields that start with a `$` or is it is within the skipField
9676+
* property.
9677+
*
96769678
* @param {string} field
96779679
* @returns {boolean}
96789680
*/
96799681
Model.prototype.skipField = function (field) {
96809682
var _this = this;
96819683
if (field.startsWith('$'))
96829684
return true;
9685+
if (this.baseModel.skipFields && this.baseModel.skipFields.indexOf(field) >= 0)
9686+
return true;
96839687
var shouldSkipField = false;
96849688
this.getRelations().forEach(function (relation) {
96859689
if ((relation instanceof _this.context.components.BelongsTo || relation instanceof _this.context.components.HasOne) &&

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuex-orm/plugin-apollo",
3-
"version": "0.0.33",
3+
"version": "0.0.34",
44
"description": "Vuex-ORM Plugin to sync the data against a GraphQL API via Apollo.",
55
"main": "dist/vuex-orm-apollo.common.js",
66
"module": "dist/vuex-orm-apollo.esm.js",

0 commit comments

Comments
 (0)