This repository is to demonstrate an issue with Seconds to Timespan type.
dotnet watch run
(or start the debug task on VS Code)- Navigate to
http://localhost:5000
- Run the
Get Item
operation detailed below to see expected result{ "data": { "getItem": { "intField": 1000, "timeSpanField": 30600 } } }
- Run the
Set Item, No Query Variables
operation detailed below to see expected result{ "data": { "setItem": { "intField": 500, "timeSpanField": 1500 } } }
- Run the
Set Item, With Query Variables
operation detailed below to see expected (incorrect) result{ "data": { "setItem": { "intField": 2000, "timeSpanField": 0 } } }
query {
getItem {
intField
timeSpanField
}
}
mutation {
setItem(input: {
intField: 500,
timeSpanField: 1500
}) {
intField
timeSpanField
}
}
mutation($input: ItemInputType!) {
setItem(input: $input) {
intField
timeSpanField
}
}
and Query Variables of
{
"input": {
"intField": 2000,
"timeSpanField": 1500
}
}