4 ms·
Do you find the type definition work to be better/easier than using model validations? I’ve found that I prefer that logic in the model instead of type def file
by sparker72678 4y ago
Do you find the type definition work to be better/easier than using model validations? I’ve found that I prefer that logic in the model instead of type def files, but hey, to each their own, of course.
- rubyist5eva 4y agoI use a mix of both. GraphQL is used to validate the schema and types of the input, model validations are used to ensure that the actual values being saved to the database make sense from a domain perspective.