Please try out our latest release candidate v1.1.0-rc1. If you find any issues, please let us know so we can address them before the final v1.1.0.
The full list of changes for v1.1.0 is available in the CHANGELOG. There are LOTS of significant changes and features in this version. They’re all covered in the CHANGELOG, so please take a look and let us know what you think! Dgraph v1.1 is NOT backwards compatible with Dgraph v1.0.
Hi, not sure if this is a bug or just me not reading it right in changelog:
Breaking change Remove _predicate_ predicate and expand() in queries. (#3262)
Does this means expand(_all) no longer supported in queries after v1.1.0?
As I tried on latest docker image: v1.1.0-rc1 and expand(all) is simply ignored in the query.
Hey @bgv to enable expand() queries in v1.1 you’ll need to set the node’s type in the schema using v1.1’s type system. The expand function picks up which edges to expand by the node’s type.
Are you starting Dgraph from scratch? I never saw that error before happening in live load.
Please, if you can reproduce this error again fill up an issue in Dgraph repo with details to reproduce it.
When working with the demo data (1million.rdf.gz), I issue the following query and it does not seem to expand. I only get the uids. Am I doing something wrong?
{ all(func: allofterms(name@en, "The Secret Life of Words"), first: 10)
{ starring @facets
{ uid expand(_all_) { uid } }
}
}
I did add the type schema and set the tour to master. All other expand directives work except for that one for some reason.
It may actually be that predicates with a period did not load correctly or that predicates with a period are not being retrieved. I am testing further.
There are some typos in your query, that aren’t needed. This level of query doesn’t have Facets. Also you don’t need to use the param “first: 10” for this case (specific). Cuz there are no other nodes with the same sequence of terms. If the sequence were “The Secret Life” you would have 27 nodes. But “The Secret Life of Words” has only one.
He’s a clean query
{
q(func: allofterms(name@en, "The Secret Life of Words")){
starring {
uid expand(_all_) {
uid
}
}
}
}
Check if this query below works, if so maybe there’s something wrong with the dataset. I’ll check it.
{
q(func: allofterms(name@en, "The Secret Life of Words")){
starring {
performance.actor { uid }
performance.film { uid }
performance.character { uid }
performance.special_performance_type { uid }
}
}
}
UPDATE:
BTW, did you used the dataset 1million.rdf.gz from master? you need, cuz in the dataset there’s “dgraph.type” needed in the Type System.
I did use the 1million.rdf.gz from master. The first query didn’t work, but the second did. I think it might be the dataset. I searched for ‘<dgraph.type> "Performance’ (without single quotes) in the file and could find anything. I found types for most others.