I haven’t ever used the python client, but here is the docs for the upsert syntax:
https://dgraph.io/docs/dql/clients/python/#running-an-upsert-query--mutation
I haven’t ever used the python client, but here is the docs for the upsert syntax:
https://dgraph.io/docs/dql/clients/python/#running-an-upsert-query--mutation