Well, I’ve tested your dummy data (thank your for that, It’s very important dummies in hand) and I had no issues using v1.0.14 - I gonna test it in v1.0.13 tho. BTW you have 3 levels of data relation, you need to add expands* for each level.
Also, instead of use has at root, try to always query by anyofterms and filter by “has”. It’s better IMHO.
Dgraph version : v1.0.14
Commit SHA-1 : 26cb2f94
Commit timestamp : 2019-04-12 13:21:56 -0700
Branch : HEAD
Go version : go1.11.5
{
preds(func: anyofterms(name, "Acme")) {
_predicate_
}
}
{
"data": {
"preds": [
{
"_predicate_": [
"industries",
"name",
"company_t",
"date_created",
"uris",
"short_name",
"date_modified",
"stocks"
],
"uid": "0x2728"
}
]
}
}
First Query
{
"data": {
"q": [
{
"name": "Kazooie LLC",
"date_created": "2019-04-23T22:08:14.743877Z",
"date_modified": "2019-04-23T22:08:14.743877Z",
"uris": [
"www.wikipedia.com/wiki/kazooie"
],
"stocks": [
{
"exchange": [
{
"name": "Nasdaq",
"uid": "0x2717"
}
],
"closing_prices": [
{
"on": "2019-04-23T00:00:00Z",
"dated_float": 15.87,
"uid": "0x2716"
},
{
"on": "2019-04-19T00:00:00Z",
"dated_float": 25.84,
"uid": "0x2719"
},
{
"on": "2019-04-21T00:00:00Z",
"dated_float": 24.35,
"uid": "0x271e"
},
{
"on": "2019-04-20T00:00:00Z",
"dated_float": 25.01,
"uid": "0x2722"
},
{
"on": "2019-04-22T00:00:00Z",
"dated_float": 25.55,
"uid": "0x272b"
}
],
"uid": "0x271d"
}
],
"uid": "0x271c"
},
{
"name": "Banjo Incorporated",
"short_name": "Banjo Inc.",
"date_created": "2019-04-23T22:08:14.743877Z",
"date_modified": "2019-04-23T22:08:14.743877Z",
"uris": [
"www.banjo.com"
],
"stocks": [
{
"exchange": [
{
"name": "Nasdaq",
"uid": "0x2717"
}
],
"closing_prices": [
{
"on": "2019-04-22T00:00:00Z",
"dated_float": 22.45,
"uid": "0x2711"
},
{
"on": "2019-04-20T00:00:00Z",
"dated_float": 19.17,
"uid": "0x2715"
},
{
"on": "2019-04-21T00:00:00Z",
"dated_float": 19.9,
"uid": "0x2718"
},
{
"on": "2019-04-23T00:00:00Z",
"dated_float": 21.4,
"uid": "0x2721"
},
{
"on": "2019-04-19T00:00:00Z",
"dated_float": 19.58,
"uid": "0x2727"
}
],
"uid": "0x272a"
}
],
"uid": "0x2725"
}
]
}
}
Last one
{
"data": {
"q": [
{
"uris": [
"www.wikipedia.com/wiki/kazooie"
],
"date_modified": "2019-04-23T22:08:14.743877Z",
"stocks": [
{
"ticker": "KZO",
"ipo_year": "1989-01-01T00:00:00Z",
"dividend": 0,
"stock_t": ""
}
],
"industries": [
{
"name": "Musical Instruments",
"industry_t": ""
}
],
"name": "Kazooie LLC",
"company_t": "",
"date_created": "2019-04-23T22:08:14.743877Z"
},
{
"uris": [
"www.banjo.com"
],
"date_modified": "2019-04-23T22:08:14.743877Z",
"stocks": [
{
"ticker": "BJO",
"ipo_year": "1998-01-01T00:00:00Z",
"dividend": 0,
"stock_t": ""
}
],
"short_name": "Banjo Inc.",
"industries": [
{
"name": "Musical Instruments",
"industry_t": ""
}
],
"name": "Banjo Incorporated",
"company_t": "",
"date_created": "2019-04-23T22:08:14.743877Z"
}
]
}
}