example schema that should reproduce (If you need full schema let me know)
type Contact {
id: ID!
name: String
hasTasks: [Task] # tasks that need to be done to this contact
hasToDos: [Task] # tasks that this contact needs to do
}
type Task {
id: ID!
name: String!
occurrances: [TaskOccurance] @hasInverse(field: task)
forContact: Contact @hasInverse(field: hasTasks)
designated: Contact @hasInverse(field: hasToDos)
}
type TaskOccurance { # broken out of Tasks that way a single task can be recurring
id: ID!
task: Task @hasInverse(field: occurrances)
due: DateTime
comp: DateTime
}
Now my query, I want to get contacts and the tasks that need to be done for them, and the tasks that they have to do.
query {
queryContact {
id
name
hasTasks {
id
name
occurrances {
due
comp
}
}
hasToDos {
id
name
occurrances {
due
comp
}
}
}
}
which resulted in the following error:
Dgraph query failed because Dgraph execution failed because Some variables are used but not defined\nDefined:[]\nUsed:[TaskOccurance1 TaskOccurance2]
This is all valid schema and should be an acceptable query even without any data present.
Again using version: v2.0.0-rc1-448-gd5892dc0c