Check the pydgraph readme file, it contains several examples: GitHub - dgraph-io/pydgraph: Official Dgraph Python client
It seems you are missing the variable declaration (query query_name($myvariable: string)) before the actual query.
Check the pydgraph readme file, it contains several examples: GitHub - dgraph-io/pydgraph: Official Dgraph Python client
It seems you are missing the variable declaration (query query_name($myvariable: string)) before the actual query.