module GraphQL::DeprecatedDSL
There are two ways to apply the deprecated `!` DSL to class-style schema definitions:
-
Scoped by file (CRuby only), add to the top of the file:
using GraphQL::DeprecatedDSL
(This is a "refinement", there are also other ways to scope it.)
-
Global application, add before schema definition:
GraphQL::DeprecatedDSL.activate
Constants
- TYPE_CLASSES
Public Class Methods
activate()
click to toggle source
# File lib/graphql/deprecated_dsl.rb, line 25 def self.activate TYPE_CLASSES.each { |c| c.extend(Methods) } GraphQL::Schema::List.include(Methods) GraphQL::Schema::NonNull.include(Methods) end