dummy_schema.rb 310 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. require 'graphql'
  3. module DummySchema
  4. class Product < GraphQL::Schema::Object
  5. field :name, String, null: false
  6. end
  7. class QueryRoot < GraphQL::Schema::Object
  8. field :product, Product, null: false
  9. end
  10. class Schema < GraphQL::Schema
  11. query(QueryRoot)
  12. end
  13. end