require-nullable-fields-with-oneof
- Category: 
Schema - Rule name: 
@graphql-eslint/require-nullable-fields-with-oneof - Requires GraphQL Schema: 
falseℹ️ - Requires GraphQL Operations: 
falseℹ️ 
Usage Examples
Incorrect
# eslint @graphql-eslint/require-nullable-fields-with-oneof: 'error'
 
input Input @oneOf {
  foo: String!
  b: Int
}Correct
# eslint @graphql-eslint/require-nullable-fields-with-oneof: 'error'
 
input Input @oneOf {
  foo: String
  bar: Int
}Resources
Last updated on