Hi,
Since graphql: Allow user to define and pass arguments to fields. by pawanrawal · Pull Request #5562 · dgraph-io/dgraph · GitHub was merged back in June, I was under the impression that arguments to custom fields were supported in master. So I ran dgraph/dgraph:master from Docker Hub and tried to add the following GraphQL schema:
type TSVal @remote {
timestamp: String! @id
value: Int
}
type Timeseries {
id: String! @id
values(from: DateTime!, till: DateTime!): [TSVal] @custom(http: {
url: "http://localhost:5000/timeseries?from=$from&till=$till"
method: GET
})
}
I got the following error message:
{"errors":[{"message":"resolving updateGQLSchema failed because input:9: Type Timeseries; Field values; url query inside @custom directive uses a field from that is not defined.\ninput:9: Type Timeseries; Field values; url query inside @custom directive uses a field till that is not defined.\n (Locations: [{Line: 3, Column: 4}])","extensions":{"code":"Error"}}]}
So my question is: Is this change supposed to be in the Docker container? Am I using this wrong?
Best regards,
Marcus