Sha256: 8a85cce46cb4f68faf48d1a2a9136fbcd094fb735c93a29870f76acb976d9d30

Contents?: true

Size: 131 Bytes

Versions: 24

Compression:

Stored size: 131 Bytes

Contents

GraphQL::INT_TYPE = GraphQL::ScalarType.define do
  name "Int"
  coerce -> (value) { value.is_a?(Numeric) ? value.to_i : nil }
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
graphql-0.11.1 lib/graphql/int_type.rb
graphql-0.11.0 lib/graphql/int_type.rb
graphql-0.10.9 lib/graphql/int_type.rb
graphql-0.10.8 lib/graphql/int_type.rb
graphql-0.10.7 lib/graphql/int_type.rb
graphql-0.10.6 lib/graphql/int_type.rb
graphql-0.10.5 lib/graphql/int_type.rb
graphql-0.10.4 lib/graphql/int_type.rb
graphql-0.10.3 lib/graphql/int_type.rb
graphql-0.10.2 lib/graphql/int_type.rb
graphql-0.10.1 lib/graphql/int_type.rb
graphql-0.10.0 lib/graphql/int_type.rb
graphql-0.9.5 lib/graphql/int_type.rb
graphql-0.9.4 lib/graphql/int_type.rb
graphql-0.9.3 lib/graphql/int_type.rb
graphql-0.9.2 lib/graphql/int_type.rb
graphql-0.8.1 lib/graphql/int_type.rb
graphql-0.8.0 lib/graphql/int_type.rb
graphql-0.7.1 lib/graphql/int_type.rb
graphql-0.7.0 lib/graphql/int_type.rb