Module: Insights::API::Common::GraphQL::Types

Defined in:
lib/insights/api/common/graphql/types/big_int.rb,
lib/insights/api/common/graphql/types/date_time.rb,
lib/insights/api/common/graphql/types/query_filter.rb,
lib/insights/api/common/graphql/types/query_sort_by.rb

Defined Under Namespace

Classes: BigInt

Constant Summary collapse

DateTime =
::GraphQL::ScalarType.define do
  name "DateTime"
  description "An ISO-8601 encoded UTC date string."

  coerce_input ->(value, _ctx) { Time.zone.parse(value) }
end
QueryFilter =
::GraphQL::ScalarType.define do
  name "QueryFilter"
  description "The Query Filter"

  coerce_input ->(value, _ctx) { JSON.parse(value.to_json) }
end
QuerySortBy =
::GraphQL::ScalarType.define do
  name "QuerySortBy"
  description "The Query SortBy"

  coerce_input ->(value, _ctx) { JSON.parse(value.to_json) }
end