Validate mutation without executing?
elfassy opened this issue · comments
Is it possible to validate a mutation without running the execute block? Thanks!
nevermind, figured it out :)
SomeMutation.new(hash).validation_outcome.errors
Compose your business logic into commands that sanitize and validate input.
elfassy opened this issue · comments
Is it possible to validate a mutation without running the execute block? Thanks!
nevermind, figured it out :)
SomeMutation.new(hash).validation_outcome.errors