Trying to delete from query result in dgraph-js

As far I can tell, DQL Variables aren’t supported on Upsert Block. But feels like it is working on JS client. Need to test tho.

What is missing from your query is

const vars = {
        $id: "someID123",
    };
const varsMap = req.getVarsMap();
...

Continue here dgraph-js/delete.spec.ts at 3f83745600818de64c968d9621a4cf7378bff147 · dgraph-io/dgraph-js · GitHub

1 Like