Hello I am having a small problem
I have a schema with type Json in it . When I try to insert data without query variables works but when I try to parameterise it. it fails.
mutation updatePropertyReport(
$mlsListingObject: Json,
$mlsID: String){
updatePropertyReport(
data:{
mlsListingObject: $mlsListingObject
},
where{mlsID $mlsID}
){
id
mlsID
mlsListingObject
}
}
query variables
{
"mlsID": "14691538",
"mlsListingObject":"{\"_id\":\"14691538\"}"
}
The following works the above doesn't with
mutation updatePropertyReport(
$mlsID: String){
updatePropertyReport(
data:{
mlsListingObject: "{\"_id\":\"14691538\"}"
},
where{mlsID $mlsID}
){
id
mlsID
mlsListingObject
}
}