Sha256: b67947cdb3b3738ba24412cad2c73dc69c28ddabe1a742622baf0f8109d84517
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
class Types::<%= class_name %>PageType < Types::BaseObject graphql_name '<%= class_name %>Page' field :title, String, null: false <% if @graphql_attributes.present? -%> <% @graphql_attributes.each do |graphql_object| -%> <% if graphql_object[:type]['Types::'] -%> field :<%= graphql_object[:attr] %>, <%= graphql_object[:type] %>, null: true <% else -%> field :<%= graphql_object[:attr] %>, <%= graphql_object[:type] %>, null: true, method: :<%= graphql_object[:attr] %>_content <% end -%> <% end -%> <% end -%> end
Version data entries
3 entries across 3 versions & 1 rubygems