{
"name": "registerCustomer",
"description": "Registers new customer",
"args": [
{
"name": "id",
"description": "Customer immutable id",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": "null"
},
{
"name": "commandId",
"description": "Command id (optional)",
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"defaultValue": "null"
},
{
"name": "firstName",
"description": "Customer first name",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": "null"
},
{
"name": "lastName",
"description": "Customer last name",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": "null"
},
{
"name": "email",
"description": "Email address",
"type": {
"kind": "INPUT_OBJECT",
"name": "RegisterEmailInput",
"ofType": null
},
"defaultValue": "null"
},
{
"name": "cellPhone",
"description": "Cell phone",
"type": {
"kind": "INPUT_OBJECT",
"name": "RegisterCellPhoneInput",
"ofType": null
},
"defaultValue": "null"
}
],
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
Response should be deserialized.
Response deserialization fails.
Description
My mutations return
IDgraph type. Response deserialization fails when I execute mutation. Seems like code on L356 (IDnot handled) is not aligned with L344 (IDhadled).https://github.com/fsprojects/FSharp.Data.GraphQL/blob/dev/src/FSharp.Data.GraphQL.Client/BaseTypes.fs#L344
https://github.com/fsprojects/FSharp.Data.GraphQL/blob/dev/src/FSharp.Data.GraphQL.Client/BaseTypes.fs#L356
Schema for one mutation:
Repro steps
Make mutation which returns
IDonly. Execute it.Expected behavior
Response should be deserialized.
Actual behavior
Response deserialization fails.
Known workarounds
Use
Stringinstead ofID.Related information
.NET Core SDK 2.2.401