ordinary-sapphireO
Refineโ€ข3y agoโ€ข
6 replies
ordinary-sapphire

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:


import { IResourceComponentsProps } from "@pankod/refine-core";
import { AntdInferencer } from "@pankod/refine-inferencer/antd";

export const PostsCreate: React.FC<IResourceComponentsProps> = () => {
    return <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
Is your feature request related to a problem? Please describe. When I initialize a new Hasura version of refine, and I use the command &quot;refine create-ressource&quot;, the pages are gen...
[FEAT] Inferencers with Hasura dataProvider ยท Issue #3326 ยท refined...
Was this page helpful?