Skip to content

Browser Support #12

@snipebin

Description

@snipebin

Currently the DGraphium client implementation relies on the gRPC dgraph-js client which is not designed to be used in the browser.

DGraph publishes https://github.com/dgraph-io/dgraph-js-http for browser envs.

I see two possible approaches to implement:

  1. Add browser support to @dgraphium/client by implementing the same interface but using https://github.com/dgraph-io/dgraph-js-http instead, then generating a bundle with the implementation and making it available using the https://docs.npmjs.com/files/package.json#browser field, or

  2. Create a new package, i.e. @dgraphium/http-client

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions