Skip to content

Customized react-admin data provider for Hasura GraphQL Engine

Notifications You must be signed in to change notification settings

worklifebeyond/wlb-ra-data-hasura

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Customized react-admin data provider for Hasura GraphQL Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published