If I have predicates used in the root node and in the expanded node (see example above).
Can I use one global filter to filter all nodes while expanding the graph?
When I use the query below, the filter applies only to the root nodes:
{
q(func: type(user)) @filter(gt(business_time_start, "2019-09-15") and eq(business_time_end, "9999-12-31")){
uid
name
user_listing{
uid
name
}
}
}
Do I really need to apply the same filter to each edge when expanding?
{
q(func: type(user)) @filter(gt(business_time_start, "2019-09-15") and eq(business_time_end, "9999-12-31")){
uid
name
user_listing@filter(gt(business_time_start, "2019-09-15") and eq(business_time_end, "9999-12-31")){
uid
name
}
}
}