Yes, your usage of Pydgraph is correct for Dgraph v20.07 or Dgraph v20.11, if you notice that the dgraph version has been updated to v21.3 which introduced few breaking changes for the clients. We are updating clients to support the newer version. Once I release the new version, this problem should go away. As a quick check, you can test if your code works with Dgraph v20.7 right now.