Sha256: a01e093348bd2a2d7ff4f852b4387bac92cd01b4dde92dc35a6bca6b6a2ce5d9

Contents?: true

Size: 441 Bytes

Versions: 20

Compression:

Stored size: 441 Bytes

Contents

<% module_namespacing_when_supported do -%>
class <%= schema_name %> < GraphQL::Schema
  query(Types::QueryType)
<% if options[:batch] %>
  # GraphQL::Batch setup:
  use GraphQL::Batch
<% end %>
  # Union and Interface Resolution
  def self.resolve_type(abstract_type, obj, ctx)
    # TODO: Implement this function
    # to return the correct object type for `obj`
    raise(GraphQL::RequiredImplementationMissingError)
  end
end
<% end -%>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
graphql-1.12.19 lib/generators/graphql/templates/schema.erb
graphql-1.12.18 lib/generators/graphql/templates/schema.erb
graphql-1.12.17 lib/generators/graphql/templates/schema.erb
graphql-1.12.16 lib/generators/graphql/templates/schema.erb
graphql-1.12.15 lib/generators/graphql/templates/schema.erb
graphql-1.12.14 lib/generators/graphql/templates/schema.erb
graphql-1.12.13 lib/generators/graphql/templates/schema.erb
graphql-1.12.12 lib/generators/graphql/templates/schema.erb
graphql-1.12.11 lib/generators/graphql/templates/schema.erb
graphql-1.12.10 lib/generators/graphql/templates/schema.erb
graphql-1.12.9 lib/generators/graphql/templates/schema.erb
graphql-1.12.8 lib/generators/graphql/templates/schema.erb
graphql-1.12.7 lib/generators/graphql/templates/schema.erb
graphql-1.12.6 lib/generators/graphql/templates/schema.erb
graphql-1.12.5 lib/generators/graphql/templates/schema.erb
graphql-1.12.4 lib/generators/graphql/templates/schema.erb
graphql-1.12.3 lib/generators/graphql/templates/schema.erb
graphql-1.12.2 lib/generators/graphql/templates/schema.erb
graphql-1.12.1 lib/generators/graphql/templates/schema.erb
graphql-1.12.0 lib/generators/graphql/templates/schema.erb