Class: GraphQL::Upgrader::SkipOnNullKeyword
- Inherits:
-
Object
- Object
- GraphQL::Upgrader::SkipOnNullKeyword
- Defined in:
- lib/graphql/upgrader/member.rb
Overview
Skip this file if you see any field
helpers with null: true
or null: false
keywords
or argument
helpers with required:
keywords,
because it's already been transformed
Instance Method Summary collapse
Instance Method Details
#skip?(input_text) ⇒ Boolean
730 731 732 |
# File 'lib/graphql/upgrader/member.rb', line 730 def skip?(input_text) input_text =~ /field.*null: (true|false)/ || input_text =~ /argument.*required: (true|false)/ end |