-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
area/facetsIssues related to face handling, querying, etc.Issues related to face handling, querying, etc.area/querylangIssues related to the query language specification and implementation.Issues related to the query language specification and implementation.kind/enhancementSomething could be better.Something could be better.priority/P1Serious issue that requires eventual attention (can wait a bit)Serious issue that requires eventual attention (can wait a bit)status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.
Milestone
Description
It seems that currently, if facets are added on value edge lists (with type [string] for example), it is impossible to retrieve any facets added on edges within the list. Here is a toy example where I have two names recorded for Alice, each with it's own since facet associated:
{
set {
_:alice <name> "Alice Smith" (since=1990-01-01) .
_:alice <name> "Alice Baker" (since=2019-01-01) .
}
}
The response for this mutation shows a success, so one can assume that the facets were added successfully:
{
"data": {
"code": "Success",
"message": "Done",
"uids": {
"alice": "0x1"
}
}
}
If you try and query the facet data, only the values of the edges are returned and not their facets:
{
query(func: has(name)) {
name @facets
}
}
Response:
{
"data": {
"query": [
{
"name": [
"Alice Smith",
"Alice Baker"
]
}
]
}
}
Would it be possible to implement the ability to fetch these facets?
Secondly, it would be good to combine this with issue #4034 and allow filtering on these facets as well.
Metadata
Metadata
Assignees
Labels
area/facetsIssues related to face handling, querying, etc.Issues related to face handling, querying, etc.area/querylangIssues related to the query language specification and implementation.Issues related to the query language specification and implementation.kind/enhancementSomething could be better.Something could be better.priority/P1Serious issue that requires eventual attention (can wait a bit)Serious issue that requires eventual attention (can wait a bit)status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.