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 GitHub - dgraph-io/dgraph-js: Official Dgraph JavaScript client
The JS HTTP client GitHub - dgraph-io/dgraph-js-http: A JavaScript HTTP client for Dgraph
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 GitHub - dgraph-io/graphoverflow: Run the entire StackOverflow on Dgraph. Work in progress.

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/