Sha256: 25339221bd8c47627acd68009e5b3bc07a368b8fcd3f2ad2a9f128e425fbb508

Contents?: true

Size: 285 Bytes

Versions: 7

Compression:

Stored size: 285 Bytes

Contents

<% module_namespacing_when_supported do -%>
module Types
  class <%= type_ruby_name.split('::')[-1] %> < Types::BaseObject
<% if options.node %>    implements GraphQL::Relay::Node.interface
<% end %><% normalized_fields.each do |f| %>    <%= f.to_ruby %>
<% end %>  end
end
<% end -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphql-1.11.10 lib/generators/graphql/templates/object.erb
graphql-1.11.9 lib/generators/graphql/templates/object.erb
graphql-1.11.8 lib/generators/graphql/templates/object.erb
graphql-1.11.7 lib/generators/graphql/templates/object.erb
graphql-1.11.6 lib/generators/graphql/templates/object.erb
graphql-1.11.5 lib/generators/graphql/templates/object.erb
graphql-1.11.4 lib/generators/graphql/templates/object.erb