File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9672,14 +9672,18 @@ var Model = /** @class */ (function () {
9672
9672
return fields ;
9673
9673
} ;
9674
9674
/**
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
+ *
9676
9678
* @param {string } field
9677
9679
* @returns {boolean }
9678
9680
*/
9679
9681
Model . prototype . skipField = function ( field ) {
9680
9682
var _this = this ;
9681
9683
if ( field . startsWith ( '$' ) )
9682
9684
return true ;
9685
+ if ( this . baseModel . skipFields && this . baseModel . skipFields . indexOf ( field ) >= 0 )
9686
+ return true ;
9683
9687
var shouldSkipField = false ;
9684
9688
this . getRelations ( ) . forEach ( function ( relation ) {
9685
9689
if ( ( relation instanceof _this . context . components . BelongsTo || relation instanceof _this . context . components . HasOne ) &&
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @vuex-orm/plugin-apollo" ,
3
- "version" : " 0.0.33 " ,
3
+ "version" : " 0.0.34 " ,
4
4
"description" : " Vuex-ORM Plugin to sync the data against a GraphQL API via Apollo." ,
5
5
"main" : " dist/vuex-orm-apollo.common.js" ,
6
6
"module" : " dist/vuex-orm-apollo.esm.js" ,
You can’t perform that action at this time.
0 commit comments