hasura / ra-data-hasura

react-admin data provider for Hasura GraphQL Engine
MIT License
337 stars 71 forks source link

fix: json column key start with an underscore is missing #116

Closed n3n closed 2 years ago

n3n commented 2 years ago

https://github.com/hasura/ra-data-hasura/blob/master/src/getResponseParser/sanitizeResource.ts#L3

As I understand this line will skip GraphQL reserved names but the reserved name starts with two underscores.

So it affects to JSON column that contains key field which starts with an underscore

image1 Screen Shot 2022-07-12 at 12 14 47

image2 Screen Shot 2022-07-12 at 12 16 12

image3 Screen Shot 2022-07-12 at 12 17 12