Skip to content

How to make Input type factories with dynamic fields or required #649

Answered by hayes
durdenx asked this question in Q&A
Discussion options

You must be logged in to vote

This is definitely a little harder in pothos.

What I would probably do is create something that has the input types for both, but separate them into separate objects so they can be typed independently:

https://stackblitz.com/edit/typescript-tnqzux?file=index.ts

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@durdenx
Comment options

Answer selected by durdenx
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