Posted by hubyhuby:
There is an example for Node.js on server side that is working well.
Now when you want to test it on the browser side the require directive is not reconised by the JS on the browser side. " const dgraph = require(“dgraph-js-http”); " gives an error.
I manage to use a "bundler " and got to the next series of problems
Could you please provide with an example ?
This worked a little :
browserify index-promise.js > bundle.js