[RFC] Generate adapters for forms #1123
Replies: 3 comments 4 replies
-
Wow, impressive! I don't think I'm totally following it, but it looks helpful. Can you show an example of how you use |
Beta Was this translation helpful? Give feedback.
-
I will need to use nested forms for an upcoming Blitz project so this is super helpful. Thanks for sharing. |
Beta Was this translation helpful? Give feedback.
-
I'm thinking it can be possible to make this a template. It could be made when running Then based on the model name, the file will export a function
or... this can be overkill, and I can just help write documentation on nested forms @flybayer, what do you think? |
Beta Was this translation helpful? Give feedback.
-
I'm working on a project that has nested forms. Something that is quite common. I'm using
react-final-form-arrays
and have a schema with relations nested 2 levels:Prisma has their own syntax when dealing creating or updating relationships between tables.
In my example, something like this:
Then came the issue with updating nested tables, so we came up with the following "adapter":
Wondering how other people deal with this, and how we can incorporate some sort of
react-final-form
&prisma
abstract?Beta Was this translation helpful? Give feedback.
All reactions