Hi Sumedha,
My graphql query is:
mutation {
updateOneIncidentType(query:
{
SQLServerId: “AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA”},
set:{name: null}
) {
SQLServerId
name
}
}
And the schema is:
{
“properties”: {
“SQLServerId”: {
“bsonType”: “string”
},
“_id”: {
“bsonType”: “objectId”
},
“createDateTimeStamp”: {
“bsonType”: “date”
},
“dataHubVersion”: {
“bsonType”: “long”
},
“isActive”: {
“bsonType”: “bool”
},
“isDeleted”: {
“bsonType”: “bool”
},
“name”: {
“bsonType”: “string”
},
“partition”: {
“bsonType”: “string”
}
},
“required”: [
“createDateTimeStamp”,
“isActive”,
“isDeleted”,
“partition”
],
“title”: “IncidentType”
}
I set Null Type Schema Validation to ON but I still get this error:
{
“data”: null,
“errors”: [
{
“message”: “Syntax Error GraphQL request (36:17) Unexpected Name “null”\n\n35: SQLServerId: “AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA”},\n36: set:{name: null} \n ^\n37: ) {\n”,
“locations”: [
{
“line”: 36,
“column”: 17
}
]
}
]
}