Can I provide filters to resource data being passed to the inferencer in a component?

I found the page on using the inferencer as part of a component (, but I cannot figure out if I can apply filters to the data from the resource being provided to the inferencer. Is this possible? (By the way, I absolutely love the inferencer, it is seriously an incredible engineering feat and the addition of it to refine has really increased my productivity, having the code it generates ready for customization is absolutely incredible!)
flat-fuchsia427d ago
vicious-gold427d ago
Thanks! You were able to get it working?
flat-fuchsia426d ago
import { HeadlessInferencer } from "@pankod/refine-inferencer/headless"; export default function page1() { const transformer = (field) => { if (field.key === "id") { return false; } return field; } return ( <> <span>page2</span> <HeadlessInferencer resource="categories" action="list" fieldTransformer={transformer} /> </> ) } i want way more control, so i will probably have to modify the data provider nd customize it to parse different api endpoints, but this works for already optimized apis
conscious-sapphire423d ago
Thanks for the contribution @kg6800 ! @hortinstein , did the previous message answers your question?
vicious-gold423d ago
Yeah thank you!
More Posts
manually modifying inferencer fieldsreference: Add custom query parameter with useListHi, is it possible to add a custom query parameter with `useList` (like `?custom-query=1`) or it shError node-modules @pankod refine-coreI dnt know wha is the error or what it means or what to do to fix it.. the code still works normal ahow do I create a link that will not be on the sidebar?How do I create new routes snd links ghat will not show on the sider , but ll be distributed across how do I switch from google authentication to create a username and password?How can i create a login page where uder can create their username and password or login with as useRefine Layout for Header & FooterHi! I was reading docs & don’t quite understand how the Layout prop works for `<Refine>`. Currentlysearch multiple antd columns field from search boxhow can we search multiple columns field from a search boxHow to add Header into request GLOBALLYI want to add a header for each api call, since my API requires a X-API-KEY header. Anyone know how?Unable to obtain categories from refine strapi demo endpoint using refine, Strapi and chakraUIHello, I’m building a simple CRUD application using refine with a strapi-v4-provider and Chakra-UI amalfunction in installationHow do I go about this error because when I execute npm run dev, the terminal returns an error with reference to defining relations between collections in appwritethere is a reference in this page Autocomplete in InferencersHi, I have two issues with the Autocomplete component in relation fields. A. With big resources, tReset sorting for useTableI have a reset button, which I am using to reset the sorting on the table. Btw I am also doing multiMultiple providers - don't neccesiate default provider?Hi guys, Opening it here for a discussion rather than a github issue. I use multiple providers, butAntd useDrawerForm not clearingWhat is the best way to clear the useDrawerForm when drawer is closed or when form is submitted? RigDefault access-control-casbin with next.js give warning of critical dependencyAfter integrating casbin with refine next.js project, I follow through boiler template but with nextCan I use the antD useTable with a resource or endpoint that is essentially custom?Hi guys, wondering if i'm going about this the wrong way and could use some advice / help if possiblgoogle authentication popup issue.okay first off what i want: the integrated google authentication to work. what i have done: 1. creaRefine _ Compiled with problems:Hi, While compiling a refine code, I have the next error: TS2786: 'ReactApexChart' cannot be used Inferencer date inferring is too sensitiveHi 🙂 Another issue I've encountered. I have a number field, that the Inferencer recognizes as a Dat