Skip to content

Commit b0cb7ce

Browse files
committed
Revert of a bugfix
1 parent 4b04b05 commit b0cb7ce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/vuex-orm-apollo.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7811,7 +7811,7 @@ var QueryBuilder = /** @class */ (function () {
78117811
Object.keys(data).forEach(function (key) {
78127812
var value = data[key];
78137813
// Ignore IDs and connections and empty fields
7814-
if (!relations.has(key) && !model.skipField(key) && key !== 'id' && value !== null) {
7814+
if (!relations.has(key) && !key.startsWith('$') && key !== 'id' && value !== null) {
78157815
returnValue[key] = value;
78167816
}
78177817
});

src/queryBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default class QueryBuilder {
140140
const value = data[key];
141141

142142
// Ignore IDs and connections and empty fields
143-
if (!relations.has(key) && !model.skipField(key) && key !== 'id' && value !== null) {
143+
if (!relations.has(key) && !key.startsWith('$') && key !== 'id' && value !== null) {
144144
returnValue[key] = value;
145145
}
146146
});

test/integration/VuexORMApollo.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ mutation DeleteUser($id: ID!) {
375375
expect(request.variables.captchaToken).toEqual('15');
376376
expect(request.variables.post.title).toEqual(post.title);
377377
expect(request.variables.post.otherId).toEqual(post.otherId);
378-
expect(request.variables.post.userId).toEqual(undefined);
378+
expect(request.variables.post.userId).toEqual(1);
379379
expect(request.query).toEqual(`
380380
mutation UpvotePost($post: PostInput!, $captchaToken: String!) {
381381
upvotePost(post: $post, captchaToken: $captchaToken) {

0 commit comments

Comments
 (0)