Skip to main content

oneOf

The @oneOf directive is used within the type system definition language to indicate:

  • an Input Object is a Oneof Input Object, or
  • an Object Type's Field is a Oneof Field.
directive @oneOf on INPUT_OBJECT