Hi @stormking, I believe what you are doing wrong is with adding arguments to value and using it with the URL. Currently, to resolve params in URL dgraph uses fields in the type. You can read more about that here.
Its actually in our roadmap to add arguments in custom fields.
So having the schema like this will work
type TSVal @remote {
timestamp: String! @id
value: Int
}
type Timeseries {
id: String! @id
from: DateTime!
till: DateTime!
values: [TSVal] @custom(http: {
url: "http://localhost:5000/timeseries?from=$from&till=$till"
method: GET
})
}
can you please help with your use case so that we can help you with the solution.