File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ const transformers = {
122
122
parseGraphQLSchema ,
123
123
{ config, auth, info }
124
124
) => {
125
- if ( Object . keys ( value ) === 0 )
125
+ if ( Object . keys ( value ) . length === 0 )
126
126
throw new Parse . Error (
127
127
Parse . Error . INVALID_POINTER ,
128
128
`You need to provide at least one operation on the relation mutation of field ${ field } `
@@ -203,7 +203,7 @@ const transformers = {
203
203
parseGraphQLSchema ,
204
204
{ config, auth, info }
205
205
) => {
206
- if ( Object . keys ( value ) > 1 || Object . keys ( value ) === 0 )
206
+ if ( Object . keys ( value ) . length > 1 || Object . keys ( value ) . length === 0 )
207
207
throw new Parse . Error (
208
208
Parse . Error . INVALID_POINTER ,
209
209
`You need to provide link OR createLink on the pointer mutation of field ${ field } `
You can’t perform that action at this time.
0 commit comments