Skip to content

Use composite keys for Ids #2016

Answered by omeraplak
youcefTab asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @youcefTab ,
Thank you for your kind words! What you can do in this situation is, You will pass information from data, form, table hooks to dataProvider using metaData.

We made an example in real-world-example,

Usage,
https://github.com/pankod/refine/blob/next/examples/real-world-example/src/pages/article/index.tsx#L101

Data Provider,
https://github.com/pankod/refine/blob/next/examples/real-world-example/src/dataProvider.ts#L92

Example,
https://refine.dev/docs/examples/real-world-refine-example/

I hope this will be useful for you 🎁

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by youcefTab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants