wmaciejak/rails_rom_graphql_clean_architecture_boilerplate

View on GitHub
app/graphql/query_type.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

QueryType = GraphQL::ObjectType.new.tap do |root|
  root.name = "Query"
  root.description = "The query root of this schema"
  root.fields = Utils::CombineFields.call(
    [
      QueryTypes::User,
      QueryTypes::Post,
      QueryTypes::Comment,
    ],
  )
end