JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q12150F
  • License MIT

react-admin data provider for Hasura GraphQL Engine

Package Exports

  • ra-data-hasura-wlb

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ra-data-hasura-wlb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ra-data-hasura

react-admin data provider for Hasura GraphQL Engine. Forked from Hasura GraphQL Engine and customized for internal usage.

Motivation

why this

Since Hasura GraphQL Engine has monorepo for all core engine and even community tools, we forked as a single repository for simplicity and focused on what we need without messing up with another stuff that not related with our need.

Customization

Hasura access control is role based. Let say we have role admin-platform; can fetching all users with results like id email name biography, but can only update biography.

In the other side, React Admin by design is performed update with parameters that we've fetched before. So, instead of update only biography field, it actually updates whole fields even though has no changes in the data. See this issue for details.

To achieve this if you want to send only the values that changes to your hasura engine, you need to compute the diff in the dataProvider and send only this diff.

Instalation

npm i ra-data-hasura-wlb --save