I need to write query to retrieve data that are created one day ago. From example: https://docs.dgraph.io/query-language/#inequality, so below query will retrieve “Ridley Scott movies released after 2018-05-06”. I need “2018-05-06” datetime
to be dynamic. So whenever i request query it should get yesterdays date
and compare with data. How can i do it?
{
me(func: eq(name@en, "Ridley Scott")) {
name@en
director.film @filter(gt(initial_release_date, "2018-05-06")) { #I need here yesterdays date.
initial_release_date
name@en
}
}
}
@pawan, @MichelDiz need help…