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 () {
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 } ) ;
Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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 ( `
380380mutation UpvotePost($post: PostInput!, $captchaToken: String!) {
381381 upvotePost(post: $post, captchaToken: $captchaToken) {
You can’t perform that action at this time.
0 commit comments