Module: GraphQL::Schema::AcceptsDefinition::ToGraphQLExtension

Defined in:
lib/graphql/schema/member.rb

Instance Method Summary collapse

Instance Method Details

#to_graphqlObject



124
125
126
127
128
129
130
131
132
133
# File 'lib/graphql/schema/member.rb', line 124

def to_graphql
  defn = super
  accepts_definition_methods.each do |method_name|
    value = public_send(method_name)
    if !value.nil?
      defn = defn.redefine { public_send(method_name, *value) }
    end
  end
  defn
end