inferencer + hasura
Hi!
I'm experimenting with the Hasura data provider, and I am most interested in refine's "Auto-generated CRUD UIs from your API data structure" feature.
For now it seems that inferencing (eg. via
AntdInferencer
) is not yet supported (https://github.com/refinedev/refine/issues/3326) and when trying to create a resource using the cli using npm run refine create-resource
it generates components, which use AntdInferencer
:
So, check-mate. ๐
I maybe missing something here: what is the way to do scaffolding, to have the basic list/create/edit/show components with maybe all the fields of the resource?
Also, I thought that the cli may help me select resources by name as well, as I assume it knows the Graphql schema, so it can figure out what types/resources are there.GitHub
[FEAT] Inferencers with Hasura dataProvider ยท Issue #3326 ยท refined...
Is your feature request related to a problem? Please describe. When I initialize a new Hasura version of refine, and I use the command "refine create-ressource", the pages are gen...
7 Replies
Hi @Omer. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Hey @beepxbeep ,
We have some news today that will make you happy ๐ Inferencer can now be used with GraphQL data providers.
To try it out, update your refine dependencies (with
npm run refine update
) and check out our documentation at https://refine.dev/docs/packages/documentation/inferencer/#usage-with-graphql-backends-and-meta-values ! ๐ฏ
Hasura example: https://github.com/refinedev/refine/tree/next/examples/inferencer-graphql-hasuraSorry @Omer, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
deep-jadeโข2y ago
Wow, thanks @Omer for getting back to me, I will try it soon and report how it went!
deep-jadeโข2y ago
@Omer it seems to work nicely. I was also happy to see that you guys also support nhost. As nhost uses Hasura under the hood I created an issue to suggest to base the nhost data provider on the Hasura one, so that you don't need to implement the same Hasura API/behaviour twice:
https://github.com/refinedev/refine/issues/4190
GitHub
[FEAT] @refinedev/nhost could be based on @refinedev/hasura ยท Issue...
Is your feature request related to a problem? Please describe. As nhost uses Hasura under the hood it may be better to base the implementation of the nhost data provider on the Hasura provider. Thi...
Hey @beepxbeep ๐ , we will be discontinuing native support for nHost data provider soon. If you would like to continue maintaining this package, please let us know. We can make the necessary changes in the documentation ๐
deep-jadeโข2y ago
I think this is a good decision. ๐ One can simply use the Hasura data provider and the auth flow should be implemented separately anyway. You can close my issue then, thanks!