require-type-pattern-with-oneof
Enforce types with `@oneOf` directive have `error` and `ok` fields.
Enforce types with `@oneOf` directive have `error` and `ok` fields.
Schema@graphql-eslint/require-type-pattern-with-oneoffalse ℹ️false ℹ️Enforce types with @oneOf directive have error and ok fields.
# eslint @graphql-eslint/require-type-pattern-with-oneof: 'error'
type Mutation {
doSomething: DoSomethingMutationResult!
}
interface Error {
message: String!
}
type DoSomethingMutationResult @oneOf {
ok: DoSomethingSuccess
error: Error
}
type DoSomethingSuccess {
# ...
}