Class: ArSerializer::GraphQL::OrTypeClass
Instance Attribute Summary
Attributes inherited from TypeClass
#type
Instance Method Summary
collapse
Methods inherited from TypeClass
#association_type, #description, #fields, from, #initialize, #of_type
Instance Method Details
#collect_types(types) ⇒ Object
354
355
356
357
|
# File 'lib/ar_serializer/graphql/types.rb', line 354
def collect_types(types)
types[:other] = true
type.map { |t| t.collect_types types }
end
|
#gql_type ⇒ Object
359
|
# File 'lib/ar_serializer/graphql/types.rb', line 359
def gql_type = kind
|
#kind ⇒ Object
348
|
# File 'lib/ar_serializer/graphql/types.rb', line 348
def kind = 'OBJECT'
|
#name ⇒ Object
350
|
# File 'lib/ar_serializer/graphql/types.rb', line 350
def name = :other
|
#of_types ⇒ Object
352
|
# File 'lib/ar_serializer/graphql/types.rb', line 352
def of_types = type
|
#ts_type ⇒ Object
361
|
# File 'lib/ar_serializer/graphql/types.rb', line 361
def ts_type = "(#{type.map(&:ts_type).join(' | ')})"
|