Skip to content

Commit 4b290ea

Browse files
committed
Add debug logging
1 parent 9827f39 commit 4b290ea

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/vuex-orm-apollo.esm.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8297,7 +8297,9 @@ var VuexORMApollo = /** @class */ (function () {
82978297
Object.keys(args).forEach(function (key) {
82988298
var value = args[key];
82998299
if (value instanceof _this.context.components.Model) {
8300-
args[key] = _this.queryBuilder.transformOutgoingData(value);
8300+
var transformedValue = _this.queryBuilder.transformOutgoingData(value);
8301+
_this.context.logger.log('A', key, 'model was found within the variables and will be transformed from', value, 'to', transformedValue);
8302+
args[key] = transformedValue;
83018303
}
83028304
});
83038305
model = this.context.getModel(state.$name);

src/vuex-orm-apollo.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ export default class VuexORMApollo {
142142
const value: any = args[key];
143143

144144
if (value instanceof this.context.components.Model) {
145-
args[key] = this.queryBuilder.transformOutgoingData(value);
145+
const transformedValue = this.queryBuilder.transformOutgoingData(value);
146+
this.context.logger.log('A', key, 'model was found within the variables and will be transformed from', value, 'to', transformedValue);
147+
args[key] = transformedValue;
146148
}
147149
});
148150

0 commit comments

Comments
 (0)