oneOf

The @oneOf built-in directive is used within the type system definition language to indicate an Input Object is a OneOf Input Object.

A OneOf Input Object is a special variant of Input Object where exactly one field must be set and non-null, all others being omitted. This is useful for representing situations where an input may be one of many different options.

link GraphQL Schema definition

  • directive @oneOf on INPUT_OBJECT

link Require by

This element is not required by anyone