I can not see the issue, can you detail it a bit better? With examples. I made an example below, if you can explain better with it already helps.
timestamps:[datetime] @index(month) @count .
Mutation in JSON
{
"set": [
{
"Nodes": [
{
"Node_Name": "Node_01",
"timestamps": [
"2018-01-01",
"2018-02-01",
"2018-03-01",
"2018-04-01"
]
},
{
"Node_Name": "Node_02",
"timestamps": [
"2019-01-01",
"2019-02-01",
"2019-03-01",
"2019-04-01"
]
},
{
"Node_Name": "Node_03",
"timestamps": [
"2018-05-01"
]
},
{
"Node_Name": "Node_04",
"timestamps": [
"2019-06-01"
]
},
{
"Node_Name": "Node_05",
"timestamps": [
"2017-06-01"
]
}
]
}
]
}
Query
{
query(func: has(Nodes)){
uid
Nodes @filter(ge(timestamps, "2018-03-01") AND le (timestamps, "2019-01-01")){ expand(_all_)}
}
query2(func: has(Nodes)){
uid
Nodes @filter(ge(timestamps, "2017-03-01") AND le (timestamps, "2018-01-01")){ expand(_all_)}
}
}
Response
{
"data": {
"query": [
{
"uid": "0x2713",
"Nodes": [
{
"Node_Name": "Node_02",
"timestamps": [
"2019-02-01T00:00:00Z",
"2019-01-01T00:00:00Z",
"2019-04-01T00:00:00Z",
"2019-03-01T00:00:00Z"
]
},
{
"Node_Name": "Node_01",
"timestamps": [
"2018-02-01T00:00:00Z",
"2018-01-01T00:00:00Z",
"2018-03-01T00:00:00Z",
"2018-04-01T00:00:00Z"
]
},
{
"Node_Name": "Node_03",
"timestamps": [
"2018-05-01T00:00:00Z"
]
}
]
}
],
"query2": [
{
"uid": "0x2713",
"Nodes": [
{
"Node_Name": "Node_01",
"timestamps": [
"2018-02-01T00:00:00Z",
"2018-01-01T00:00:00Z",
"2018-03-01T00:00:00Z",
"2018-04-01T00:00:00Z"
]
},
{
"Node_Name": "Node_05",
"timestamps": [
"2017-06-01T00:00:00Z"
]
}
]
}
]
}