Skip to content

Add GraphQL mutually exclusive validator

Heinrich Lee Yu requested to merge hly-graphql-mutually-exclusive into master

What does this MR do and why?

Adds a custom validator to validate that arguments are mutually exclusive. This is similar to Grape's mutually_exclusive helper.

For reference: https://graphql-ruby.org/fields/validation.html#custom-validators

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Heinrich Lee Yu

Merge request reports