You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in love with codegen capabilities of graphql. It allows me from one side to avoid code duplication of manually handling two sets of models on client and server separately and from another hand it reduces the boilerplate of having a third "shared" package between client and server which stores all the models. The only thing as of now for me that is left to share manually is regexp's.
Like for example i have a custom email scalar with regex'p validation. is there some way to pass it to the client via codegen, so the client is able to make client-side input validation without duplicating this regexp on client repo or without creating some third "shared" repo?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, there
I'm in love with codegen capabilities of graphql. It allows me from one side to avoid code duplication of manually handling two sets of models on client and server separately and from another hand it reduces the boilerplate of having a third "shared" package between client and server which stores all the models. The only thing as of now for me that is left to share manually is regexp's.
Like for example i have a custom email scalar with regex'p validation. is there some way to pass it to the client via codegen, so the client is able to make client-side input validation without duplicating this regexp on client repo or without creating some third "shared" repo?
Beta Was this translation helpful? Give feedback.
All reactions