142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
# File 'lib/graphql/schema.rb', line 142
def initialize_copy(other)
super
@orphan_types = other.orphan_types.dup
@directives = other.directives.dup
@static_validator = GraphQL::StaticValidation::Validator.new(schema: self)
@middleware = other.middleware.dup
@query_analyzers = other.query_analyzers.dup
@multiplex_analyzers = other.multiplex_analyzers.dup
@tracers = other.tracers.dup
@possible_types = GraphQL::Schema::PossibleTypes.new(self)
@lazy_methods = other.lazy_methods.dup
@instrumenters = Hash.new { |h, k| h[k] = [] }
other.instrumenters.each do |key, insts|
@instrumenters[key].concat(insts)
end
if other.rescues?
@rescue_middleware = other.rescue_middleware
end
@types = nil
end
|