worthy-roseW
Refine3y ago
4 replies
worthy-rose

Do I need to set CreateInferencer meta prop when using a Graphql data provider?

I'm triying to render a creation form for the "User" resource using the MantineInferencer

my Refine resources props looks like this:

resources={[{
                  name: "users",
                  list: "/users",
                  create: "/users/create",
                  edit: "/users/edit/:id",
                  show: "/users/show/:id"
                }]}


my UserCreate component looks like this

export const UserCreate: React.FC<IResourceComponentsProps> = () => {
    return <MantineInferencer />;
};



And I'm getting the following error:

Error

Something went wrong while fetching the resource data.

Please check your data provider and API for resource "users".

For more info, please check the documentation.
Was this page helpful?