Can anyone help me do what seems like the simplest query - and to do it in the current version of Dgraph Slash before the updated remodel mentioned above is released?
Schema:
type Object {
id: ID!
name: String @search(by:[fulltext])
anotherObject: AnotherObject!
}
type AnotherObject {
id: ID!
name: String @search(by:[fulltext])
}
Intended query: Return all Objects where anotherObject = “0x123” and name = “Some search term string”?
Seems that Dgraph Slash is capable of querying Objects where “name = “Some search term string”” but not where "anotherObject = “0x123"” ??
Surely, there must be a simple way to query based on values of ALL predicates/relationships (terminology)? of an Object in the current form of Slash, yeah? This is the equivalent to being able to search in the SQL world the value of ANY column, yeah?
In other words, there MUST be a way, yeah?
Thanks.