Sha256: adf4f52f6870e7e715c5c49d609f3a5f8d44f8b1c411a0c2174a2f49e2478a75

Contents?: true

Size: 454 Bytes

Versions: 40

Compression:

Stored size: 454 Bytes

Contents

<% module_namespacing_when_supported do -%>
module Types
  class <%= type_ruby_name.split('::')[-1] %> < Types::BaseScalar
    def self.coerce_input(input_value, context)
      # Override this to prepare a client-provided GraphQL value for your Ruby code
      input_value
    end

    def self.coerce_result(ruby_value, context)
      # Override this to serialize a Ruby value for the GraphQL response
      ruby_value.to_s
    end
  end
end
<% end -%>

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
graphql_cody-1.13.0 lib/generators/graphql/templates/scalar.erb
graphql-1.12.24 lib/generators/graphql/templates/scalar.erb
graphql-1.13.6 lib/generators/graphql/templates/scalar.erb
graphql-1.13.5 lib/generators/graphql/templates/scalar.erb
graphql-1.13.4 lib/generators/graphql/templates/scalar.erb
graphql-1.13.3 lib/generators/graphql/templates/scalar.erb
graphql-1.12.23 lib/generators/graphql/templates/scalar.erb
graphql-1.13.2 lib/generators/graphql/templates/scalar.erb
graphql-1.13.1 lib/generators/graphql/templates/scalar.erb
graphql-1.12.22 lib/generators/graphql/templates/scalar.erb
graphql-1.13.0 lib/generators/graphql/templates/scalar.erb
graphql-1.12.21 lib/generators/graphql/templates/scalar.erb
graphql-1.12.20 lib/generators/graphql/templates/scalar.erb
graphql-1.12.19 lib/generators/graphql/templates/scalar.erb
graphql-1.11.10 lib/generators/graphql/templates/scalar.erb
graphql-1.12.18 lib/generators/graphql/templates/scalar.erb
graphql-1.11.9 lib/generators/graphql/templates/scalar.erb
graphql-1.12.17 lib/generators/graphql/templates/scalar.erb
graphql-1.12.16 lib/generators/graphql/templates/scalar.erb
graphql-1.12.15 lib/generators/graphql/templates/scalar.erb