class ArSerializer::GraphQL::OptionalTypeClass

Public Instance Methods

association_type() click to toggle source
# File lib/ar_serializer/graphql/types.rb, line 365
def association_type
  of_type.association_type
end
collect_types(types) click to toggle source
# File lib/ar_serializer/graphql/types.rb, line 369
def collect_types(types)
  of_type.collect_types types
end
gql_type() click to toggle source
# File lib/ar_serializer/graphql/types.rb, line 373
def gql_type
  of_type.gql_type
end
kind() click to toggle source
# File lib/ar_serializer/graphql/types.rb, line 353
def kind
  of_type.kind
end
name() click to toggle source
# File lib/ar_serializer/graphql/types.rb, line 357
def name
  of_type.name
end
of_type() click to toggle source
# File lib/ar_serializer/graphql/types.rb, line 361
def of_type
  TypeClass.from type.first, only, except
end
sample() click to toggle source
# File lib/ar_serializer/graphql/types.rb, line 377
def sample
  nil
end
ts_type() click to toggle source
# File lib/ar_serializer/graphql/types.rb, line 381
def ts_type
  "(#{of_type.ts_type} | null)"
end