Module: Hai::GraphQL
- Defined in:
- lib/hai/graphql.rb,
lib/hai/graphql/types.rb,
lib/hai/types/base_create.rb,
lib/hai/graphql/list_queries.rb,
lib/hai/graphql/read_queries.rb,
lib/hai/types/sort_input_type.rb,
lib/hai/graphql/create_mutations.rb,
lib/hai/graphql/delete_mutations.rb,
lib/hai/graphql/update_mutations.rb,
lib/hai/types/arel/int_input_type.rb,
lib/hai/types/mutation_error_type.rb,
lib/hai/types/arel/sort_input_type.rb,
lib/hai/types/arel/float_input_type.rb,
lib/hai/types/arel/string_input_type.rb,
lib/hai/types/arel/boolean_input_type.rb,
lib/hai/types/arel/datetime_input_type.rb
Defined Under Namespace
Modules: ClassMethods, Types Classes: CreateMutations, DeleteMutations, ListQueries, ReadQueries, UpdateMutations
Constant Summary collapse
- TYPE_CAST =
{ ActiveModel::Type::Integer => ::GraphQL::Types::Int, ActiveModel::Type::Float => ::GraphQL::Types::Float, ActiveModel::Type::String => ::GraphQL::Types::String, ActiveRecord::Type::Text => ::GraphQL::Types::String, ActiveModel::Type::Boolean => ::GraphQL::Types::Boolean, ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter => ::GraphQL::Types::ISO8601DateTime }.freeze
- AREL_TYPE_CAST =
{ ActiveModel::Type::Integer => Hai::GraphQL::Types::Arel::IntInputType, ActiveModel::Type::Float => Hai::GraphQL::Types::Arel::FloatInputType, ActiveModel::Type::String => Hai::GraphQL::Types::Arel::StringInputType, ActiveRecord::Type::Text => Hai::GraphQL::Types::Arel::StringInputType, ActiveModel::Type::Boolean => Hai::GraphQL::Types::Arel::BooleanInputType, ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter => Hai::GraphQL::Types::Arel::DateTimeInputType }.freeze
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
33 34 35 |
# File 'lib/hai/graphql.rb', line 33 def self.included(base) base.extend(ClassMethods) end |