2021-05-04 20:57:47 +03:00
|
|
|
- description: Passing null value for nullable type
|
|
|
|
url: /v1/graphql
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
data:
|
|
|
|
author: []
|
|
|
|
query:
|
|
|
|
variables:
|
|
|
|
limit: null
|
|
|
|
query: |
|
|
|
|
query author($limit: Int) {
|
|
|
|
author(limit: $limit) {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- description: Passing null value for non-nullable type with default value
|
|
|
|
url: /v1/graphql
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
data:
|
|
|
|
author: []
|
|
|
|
query:
|
|
|
|
variables:
|
|
|
|
limit: null
|
|
|
|
query: |
|
|
|
|
query author($limit: Int! = 1) {
|
|
|
|
author(limit: $limit) {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- description: Passing null value for non nullable type
|
|
|
|
url: /v1/graphql
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
errors:
|
|
|
|
- extensions:
|
|
|
|
path: $.selectionSet.update_author.args.where.id._eq
|
|
|
|
code: validation-failed
|
2021-05-13 23:12:52 +03:00
|
|
|
message: unexpected null value for type "Int"
|
2021-05-04 20:57:47 +03:00
|
|
|
query:
|
|
|
|
variables:
|
|
|
|
author_id: null
|
|
|
|
query: |
|
|
|
|
mutation update_author($author_id: Int!) {
|
|
|
|
update_author(where: {id: {_eq: $author_id}}, _set: {name: ""}) {
|
|
|
|
returning {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|