flat-fuchsia
flat-fuchsia•2mo ago

refine/examples/inferencer-graphql-hasur...

Just starting out on my journey, has a false start (will document it) with trying to use the SQLite dataprovider... now trying to use hasura long with inferance. One thing i was wondering is can we setup the provider to discover/query to build https://github.com/refinedev/refine/blob/main/examples/inferencer-graphql-hasura/src/inferencerPredefinedMeta.ts instead of needing to create it by hand?
GitHub
refine/examples/inferencer-graphql-hasura/src/inferencerPredefinedM...
A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility. - refinedev/refine
2 Replies
stormy-gold
stormy-gold•2mo ago
Hey @a_c_m, sorry for the late response. Unfortunately @refinedev/inferencer doesn't do that. inferencer-graphql-hasura looks a bit outdated btw. We now recommend using meta.gqlQuery or meta.gqlMutation properties to be used. While generating meta.fields or meta.variables via introspection or something is not possible, gqlQuery or gqlMutation might be generated via graphql code-gen packages 🤔
fascinating-indigo
fascinating-indigo•2mo ago
Oh thanks, i will take a look at those two - is https://example.crm.refine.dev/quotes the best example (seems to use nest-query) or are there better ones?

Did you find this page helpful?