-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
area/querylangIssues related to the query language specification and implementation.Issues related to the query language specification and implementation.area/querylang/varsIssues related to queries with GraphQL variablesIssues related to queries with GraphQL variableskind/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
Experience Report
What you wanted to do
{
getJeunet as var(func: eq(name@fr, "Jean-Pierre Jeunet"))
caro(func: eq(name@en, "Marc Caro")) {
name@en
director.film @filter(uid_in(~director.film, val(getJeunet) )) {
name@en
}
}
}
If I use
@filter(uid_in(~director.film, val(getJeunet)))it gets the error": Wrong variable type encountered for var(getJeunet) 2.". I've tried other ways too just to test.
This could avoid problems with UID changes in Nodes. And be used in documentation.
Why that wasn't great, with examples
Most functions accept Query Variables
BTW
uid_in works fine with DQL Variables.
Some discussion on this https://discuss.dgraph.io/t/uid-in-cant-use-variables/2772
https://discuss.dgraph.io/t/improve-uid-in-with-value-variable/5266
yaariyuval and seanlaff
Metadata
Metadata
Assignees
Labels
area/querylangIssues related to the query language specification and implementation.Issues related to the query language specification and implementation.area/querylang/varsIssues related to queries with GraphQL variablesIssues related to queries with GraphQL variableskind/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.