File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7811,7 +7811,7 @@ var QueryBuilder = /** @class */ (function () {
7811
7811
Object . keys ( data ) . forEach ( function ( key ) {
7812
7812
var value = data [ key ] ;
7813
7813
// 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 ) {
7815
7815
returnValue [ key ] = value ;
7816
7816
}
7817
7817
} ) ;
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export default class QueryBuilder {
140
140
const value = data [ key ] ;
141
141
142
142
// 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 ) {
144
144
returnValue [ key ] = value ;
145
145
}
146
146
} ) ;
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ mutation DeleteUser($id: ID!) {
375
375
expect ( request . variables . captchaToken ) . toEqual ( '15' ) ;
376
376
expect ( request . variables . post . title ) . toEqual ( post . title ) ;
377
377
expect ( request . variables . post . otherId ) . toEqual ( post . otherId ) ;
378
- expect ( request . variables . post . userId ) . toEqual ( undefined ) ;
378
+ expect ( request . variables . post . userId ) . toEqual ( 1 ) ;
379
379
expect ( request . query ) . toEqual ( `
380
380
mutation UpvotePost($post: PostInput!, $captchaToken: String!) {
381
381
upvotePost(post: $post, captchaToken: $captchaToken) {
You can’t perform that action at this time.
0 commit comments