How to do upserts with dgraph-js-http?

I’m trying to port my code from dgraph-js to dgraph-js-http. But i don’t see how to do upserts in the docs.

You can try this