Have chrome extension read/write dgraph data

I’m trying to build a chrome extension that can read/write to a dgraph database.

I’m not totally familiar with how this would work and whether it is a dgraph specific issue. Can I make calls directly from the Chrome Javascript script to the database, or is there some intermediate step?

Thank you!

Hi Dynamic99,

Well, you have 3 options do do it.

Using the official client for JS https://github.com/dgraph-io/dgraph-js
The JS HTTP client https://github.com/dgraph-io/dgraph-js-http
And via cURL Update: Using JSON to mutate on Dgraph. (cURL, Raw HTTP)

If you wanna know about Dgraph with those JS clients take a look on https://github.com/dgraph-io/graphoverflow

You can use Dgraph anywhere as long as PORT 8080 (or other multi-instance ports used or gRPC ports) is accessible.

Dgraph Docs https://docs.dgraph.io/