I am using dgraph version 20.11.02
I have a simple rest API which returns the following json
{"id":"0x1a","class":"Time","label":"Label","value":10,"standardValue":1.1,"text":"Test Single Reason"}
In my schema, I have the following:
type ReasonTest @remote {
id : ID!
class : String!
label : String!
text : String!
value : Int
standardValue : Float
}
type Query{
getTest: ReasonTest @custom(http:{
url: "http://host.docker.internal:10000/getTest",
method: GET
})
}
when I query getTest, I get the string types OK, but float and integer types are null
{
“data”: {
“getTest”: {
“id”: “0x1a”,
“label”: “Label”,
“text”: “Test Single Reason”,
“class”: “Time”,
“value”: null,
“standardValue”: null
}
},
“extensions”: {
“tracing”: {
“version”: 1,
“startTime”: “2021-02-28T01:56:18.5597489Z”,
“endTime”: “2021-02-28T01:56:18.5803396Z”,
“duration”: 20618800
}
}
}